home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / bindings / modeori-fun / ref < prev    next >
Encoding:
Text File  |  1996-09-27  |  84.9 KB  |  3,421 lines

  1. @ref-lib fun/tags-mac.r file-reference
  2. @ref-lib fun/autolang.r known-endings
  3. @ref-lib modeori-fun/autoterm.r list
  4. @ref-lib fun/sokoban.r sokoban-call-ref
  5. @ref-lib fun/global-ref regexp-reference cmd-reference
  6. @ref-see-also See also in %s.
  7. @{{{  @ref-header ModeOri-Reference-Card
  8. @ref-title ModeOri Reference-Card
  9. @ref-author W. Stumvoll
  10. This is the reference-file for `ModeOri', a binding for the folding-editor
  11. Origami.
  12. @}}}
  13. @{{{  ModeOri-Reference-Card
  14. This document is generated automatically, following the actual configuration of
  15. ModeOri. Therefor some chapters might be skipped, to use the same chapter
  16. numbers in all configurations of ModeOri.
  17.  
  18. @{{{  Global Informations
  19. @{{{  ModeOri Usage
  20. In addition to standard Origami-features, ModeOri supports several new modes,
  21. for example:
  22.  
  23. @{{{  Edit-Mode and Move-Mode
  24. You can switch from editing-environment (Edit-Mode, marked with `Edit' or `E'
  25. in the statusline) to Move-Mode (marked with `Move' or `M'), which is used to
  26. define regions of text. The normal editing-functions (like `delete-line') work
  27. on a regions instead of the current line in this mode and return to editing
  28. afterwards.
  29. @}}}
  30. @{{{  @short Buffer-Handling-Mode
  31. Control the screen layout of multiple buffers.
  32. @}}}
  33. @if-using ( L-EXT )
  34. @{{{  Extended-Mode
  35. In Edit-Mode you can choose an Extended-Mode (marked with `Ext' or `X') in the
  36. statusline). This mode changes the meaning of {,(,[,;,",' and space. Instead of
  37. the normal text-character, complexer structures are put into the text,
  38. depending on the current folding-language.
  39. @}}}
  40. @fi
  41. @{{{  Line-Movement-Mode
  42. Line-movements (`previous-line' and `next-line') are handled in two different
  43. ways, depending on set or unset mode `filebased-cursor-motion':
  44. @ref-start-tbl Mode 12 Mark 4 Effect 24
  45. screen-based @@ % @@ closed folds
  46. file-based @@ @@ opens closed folds
  47. @ref-end-tbl
  48. @}}}
  49. @{{{  Wrap Around
  50. Mode wrap is marked with `Wrap' or `W' in the statusline. If this mode is
  51. active, typing a space at the end of a long line automagically opens a new
  52. line. Break length is given by fill-paragraph width.
  53. @}}}
  54. @ref-see-also C-> %s.
  55. @{{{  @autolang-ref auto-language switching
  56. @}}}
  57. @ref-see-also See also in %s.
  58. @if-using ( SHELL-MODE )
  59. @{{{  ModeOri and its mini-shell
  60. If command line option -Oshell is active, ModeOri will start as a mini-shell.
  61. This can be used to copy/move/remove files, walk through directory trees.
  62. @}}}
  63. @fi
  64.  
  65. @{{{  Environment and Command Line Options
  66. Many features of ModeOri can be controlled using command line options:
  67.  
  68. @{{{  @cmd-opt Origami Command Line Options
  69. @}}}
  70. @{{{  ModeOri Command Line Options
  71. You can use the following names, to switch on[off] the corresponding mode using
  72. `-Oname':
  73. @ref-start-tbl Option 16 Function 50
  74. @if-using ( SHELL-MODE )
  75. noshell @@ start as editor
  76. shell @@ start menu driven mini-shell
  77. xshell @@ start menu driven mini-shell in expert mode
  78. @fi
  79. [no]stat @@ statusline
  80. [no]ext @@ extended mode
  81. [no]bs @@ buffer-save
  82. [no]pos @@ display position
  83. [no]ld @@ long diredit display
  84. [no]high @@ highlighting
  85. [no]center @@ center cursor line
  86. [no|x]magic @@ regular expression mode
  87. [no]ai @@ auto-indent
  88. [no]full @@ full-shift
  89. [no]al @@ auto-language setting
  90. [no]time @@ time display
  91.  
  92. default @@ set all modes to their defaults.
  93.  
  94. slow @@ like default, but disable:
  95. @@ position display
  96. @@ high-lighting
  97. @@ full-shift
  98. @@ regular-expression search
  99. @@ long diredit display
  100. @ref-end-tbl
  101.  
  102. However, command line options are handled left to right.
  103.  
  104. The option -Onooverstrike calls the function no-overstrike, when the first file
  105. is read. This can be used to use ModeOri as pager for roff output.
  106.  
  107. The following options pass strings to ModeOri:
  108. @ref-start-tbl Option 16 Function 50
  109. tags=file @@ use `file', not default path list for tags.
  110. gotags=tag @@ use `tag' to move to the tagged position
  111. @@ `tag' may be a prefix of a tag.
  112. make=cmd @@ use `cmd' instead of the default command
  113. spell=cmd @@ use `cmd' instead of the default command
  114. @if-using ( SHELL-MODE )
  115. mail=cmd @@ use `cmd' instead of the default command
  116. nn=cmd @@ use `cmd' instead of the default command
  117. @fi
  118. @ref-end-tbl
  119.  
  120. The following mark sets are predefined for Origami Option `-m':
  121. @ref-start-tbl Name 8 Open 5 Line 5 Close 5 File 5
  122. pascal @@ <<< @@ ... @@ >>> @@ :::
  123. script @@ ##@ @@ ... @@ ##$ @@ ##:
  124. @ref-end-tbl
  125. @}}}
  126.  
  127. Some of the commands need a correct initialized environment. The needed
  128. resources are:
  129.  
  130. @if-using ( W-GET-X-SEL )
  131. @{{{  selection
  132. @ref-start-item environment-variable: GETSELECTION
  133. Calling $GETSELECTION must write the selection of your window-system to the
  134. standard-output.
  135. @ref-end-item
  136. @}}}
  137. @fi
  138. @ref-see-also C-> %s.
  139. @{{{  @tags-mac-ref Tags file
  140. @}}}
  141. @ref-see-also See also in %s.
  142. @{{{  library path
  143. @ref-start-item environement-variable ORIGAMILIBPATH
  144. This variable contains a `:' separated list of directories, used by
  145. `enter-fold' in extended mode for include-lines.
  146. @ref-end-item
  147. @}}}
  148. @{{{  make command
  149. @ref-start-item environment-variable: MAKE_CMD
  150. You have to set this environment-variable to your favourite make-command, to
  151. use the `call-make' function (default is `make').
  152. @if-using ( SHELL-MODE )
  153. This command is also used by the Make item in the ModeOriShell.
  154. @fi
  155.  
  156. @{{{  using -O
  157. @}}}
  158. @ref-end-item
  159. @}}}
  160. @{{{  spell command
  161. @ref-start-item environment-variable: SPELL_CMD
  162. You have to set this environment-variable to your favourite
  163. spell-checking-command, to use the `spell' function (default is `spell').
  164.  
  165. @{{{  using -O
  166. @}}}
  167. @ref-end-item
  168. @}}}
  169. @{{{  mail command
  170. @ref-start-item environment-variable: MAIL_CMD
  171. You have to set this environment-variable to your favourite mail processing
  172. command, to use the Postbox item in the ModeOriShell.
  173.  
  174. @{{{  using -O
  175. @}}}
  176. @ref-end-item
  177. @}}}
  178. @if-using ( SHELL-MODE )
  179. @{{{  @shell-mode nn command
  180. @ref-start-item environment-variable: NN_CMD
  181. You have to set this environment-variable to your favourite news reader, to use
  182. the News item in the ModeOriShell.
  183.  
  184. @{{{  using -O
  185. @}}}
  186. @ref-end-item
  187. @}}}
  188. @{{{  @shell-mode edit command
  189. @ref-start-item environment-variable: EDIT_CMD
  190. Set this variable to your favourite editor, if you do not want to use ModeOri.
  191. @ref-end-item
  192. @}}}
  193. @fi
  194. @}}}
  195. @}}}
  196. @{{{  Keyboard and Key Usage
  197. @{{{  how to reach commands
  198. @{{{  escape key followed by 2 character code
  199. The letters are a short-representations of the command, eg:
  200. @ref-start-tbl Keysequence 12 Function 32
  201. esc a t @@ toggle-attach-file-to-fold
  202. esc + v @@ add view-mode
  203. esc - v @@ delete view-mode
  204. @ref-end-tbl
  205. @}}}
  206. @{{{  cursor keypad
  207. Normal cursor movement is supported.
  208.  
  209. The right keypad can be used as a function keypad. Key R13 is used as a `Meta'
  210. key. Keys, which are used with a leading R13 are represented by
  211. `R13/Meta-<key>'. For example:
  212. @ref-start-tbl Keysequence 12 Representation 14 Function 16
  213. R8 @@ R8 @@ previous-line
  214. R13 R8 @@ R13/Meta-R8 @@ mtool-top
  215. R13 g @@ R13/Meta-g @@ goto-line
  216. @ref-end-tbl
  217.  
  218. @{{{  general layout of the keypad
  219. @ref-start-tbl Key/f/meta-f 19 Key/f/meta-f 19 Key/f/meta-f 19
  220. R1 @@ R2 @@ R3
  221. beginning-of-fold @@ kill-line @@ end-of-fold
  222. previous-page @@ move-line @@ next-page
  223.  
  224. R4 @@ R5 @@ R6
  225. open-fold @@ copy-to-kill-buf @@ close-fold
  226. enter-fold @@ double-line @@ exit-fold
  227.  
  228. R7 @@ R8 @@ R9
  229. beginning-of-line @@ previous-line @@ end-of-line
  230. undo-delete-line @@ mtool-top @@ delete-line
  231.  
  232. R10 @@ R11 @@ R12
  233. backward-character @@ ins-folded-kill-b @@ forward-character
  234. backward-word @@ toggle-file-fold @@ forward-word
  235.  
  236. R13 @@ R14 @@ R15
  237. (*) @@ next-line @@ create-fold
  238. center-and-redraw @@ mtool-bot @@ unfold-fold
  239. @ref-end-tbl
  240.  
  241. The first command is activated by pressing the corresponding key.
  242.  
  243. The second command is activated, by pressing R13, followed by the corresponding
  244. key. Because of this (*) does not call any command!
  245.  
  246. The meaning of the above mentioned commands is explained in the following
  247. chapters!
  248.  
  249. The above given bindings is for normal editing. In some modes, other or no
  250. commands are bound to the keys.
  251.  
  252. @{{{  keysequences used for ORIGAMITERM="sun"
  253. Redefining the terminal definition in your environement (for example xterm
  254. translation tables) enable the usage of ORITERM="sun" for other terminals.
  255.  
  256. Modeori expects the following keysequences, if ORIGAMITERM is set to "sun":
  257. @ref-start-tbl Keyname 9 Sequence 16 @@ Keyname 9 Sequence 16
  258. backspace @@ C-H @@ f1 @@ C-[ [ 2 2 4 z
  259. delete @@ C-? @@ f2 @@ C-[ [ 2 2 5 z
  260. tab @@ C-I @@ f3 @@ C-[ [ 2 2 6 z
  261. down @@ C-[ [ B @@ f4 @@ C-[ [ 2 2 7 z
  262. left @@ C-[ [ D @@ f5 @@ C-[ [ 2 2 8 z
  263. right @@ C-[ [ C @@ f6 @@ C-[ [ 2 2 9 z
  264. up @@ C-[ [ A @@ f7 @@ C-[ [ 2 3 0 z
  265. R1 @@ C-[ [ 2 0 8 z @@ f8 @@ C-[ [ 2 3 1 z
  266. R2 @@ C-[ [ 2 0 9 z @@ f9 @@ C-[ [ 2 3 2 z
  267. R3 @@ C-[ [ 2 1 0 z @@ f10 @@ C-[ [ 2 3 3 z
  268. R4 @@ C-[ [ 2 1 1 z @@ L1 @@ C-[ [ 1 9 2
  269. R5 @@ C-[ [ 2 1 2 z @@ L2 @@ C-[ [ 1 9 3
  270. R6 @@ C-[ [ 2 1 3 z @@ L3 @@ C-[ [ 1 9 4
  271. R7 @@ C-[ [ 2 1 4 z @@ L4 @@ C-[ [ 1 9 5
  272. R8 @@ C-[ [ 2 1 5 z @@ L5 @@ C-[ [ 1 9 6
  273. R9 @@ C-[ [ 2 1 6 z @@ L6 @@ C-[ [ 1 9 7
  274. R10 @@ C-[ [ 2 1 7 z @@ L7 @@ C-[ [ 1 9 8
  275. R11 @@ C-[ [ 2 1 8 z @@ L8 @@ C-[ [ 1 9 9
  276. R12 @@ C-[ [ 2 1 9 z @@ L9 @@ C-[ [ 2 0 0
  277. R13 @@ C-[ [ 2 2 0 z @@ L10 @@ C-[ [ 2 0 1
  278. @@ C-[ [ 2 z @@ help @@ C-[ [ 1 9 6
  279. R14 @@ C-[ [ 2 2 1 z
  280. R15 @@ C-[ [ 2 2 2 z
  281. @ref-end-tbl
  282.  
  283. The second sequence for R13 is the one, sent by the Insert key, which some sun
  284. keyborads have below the R-keys.
  285. @}}}
  286. @}}}
  287. @if-using ( AMIGA amiga )
  288. @{{{  Using a Amiga
  289. Mapping of the keypad to R?? keys:
  290. @ref-start-tbl Col.1 5 Col.2 5 Col.3 5 Col.4 5
  291. R4 @@ R5 @@ R6 @@ R1
  292. R7 @@ R8 @@ R9 @@ R2
  293. R10 @@ R11 @@ R12 @@ R3
  294. R13 @@ R14 @@ R15 @@ Enter
  295. R13 @@ @@ tab @@ Enter
  296. @ref-end-tbl
  297.  
  298. Instead of pressing R13 followed by a key, you can also use the one of the
  299. amiga-keys together with the following key.
  300.  
  301. Sorry, but amiga-[left/right] and cursor keys cannot be used!
  302. @}}}
  303. @fi
  304. @if-using ( linux )
  305. @{{{  Using a linux console
  306. If using ModeOri on a standard linux console, the following mapping of the
  307. keypad is used:
  308. @ref-start-tbl - 9 - 9 - 9 @@ Col.1 5 Col.2 6 Col.3 6 Col.4 6
  309. ins.-char @@ home @@ prev-page @@ NumL. @@ R1 @@ R2 @@ R3
  310. delete @@ home-down @@ next-page @@ R4 @@ R5 @@ R6 @@ unused
  311. - @@ - @@ - @@ R7 @@ R8 @@ R9 @@ R15
  312. - @@ up @@ - @@ R10 @@ R11 @@ R12 @@ R15
  313. left @@ down @@ right @@ R13 @@ R13 @@ R14 @@ R15
  314. @ref-end-tbl
  315. @}}}
  316. @fi
  317. @}}}
  318. @{{{  function keys
  319. The function-keys f1..f10 are used for some commands as a replacement for the
  320. SUN-like usage of the cursorblock.
  321.  
  322. All function-keys can be simulated by typing:
  323. @ref-start-tbl Keysequence 12 Simulation 32
  324. fx @@ esc f x, x=1..9
  325. f10 @@ esc f 0
  326. @ref-end-tbl
  327.  
  328. This is usefull, if your terminal does not support function keys.
  329. @}}}
  330. @{{{  control sequences
  331. Some wordstar oriented sequences for control and movement are also supported.
  332.  
  333. Other commands can be reached by pressing C-Q and a following single character;
  334. these keys are similar to those, used by R13/Meta!
  335. @}}}
  336. @if-using (MOUSY)
  337. @{{{  mouse
  338. If ModeOri supports the mouse (xterm,...), the mouse-buttons are used as
  339. follows:
  340. @ref-start-tbl Button 6 Function 32
  341. 1 @@ move to point and open the fold (if any)
  342. 2 @@ move to point and close fold
  343. 3 @@ move to point and show fold informations
  344. @ref-end-tbl
  345. @}}}
  346. @fi
  347. @if-using ( AMIGA amiga )
  348. @{{{  amiga menu
  349. If you are using ModeOri on a Amiga, the following 3 Menus are defined:
  350. @ref-start-tbl ? 14 File 14 Parameter 14
  351. Bindings @@ Save @@ Language
  352. Help @@ Unchange @@ Fold Marks
  353. Info @@ Read @@ DirEdit Filter
  354. ModeOri menu @@ Insert @@ Commands
  355. @@ Exit ModeOri @@
  356. @ref-end-tbl
  357. @}}}
  358. @fi
  359. @}}}
  360. @ref-see-also
  361. @{{{  which keyboards can be used
  362. @}}}
  363. @ref-see-also See also in %s.
  364. @}}}
  365. @{{{  Used Command Description
  366. The format for this reference card is:
  367.  
  368. @{{{  command
  369. @ref-start-item keysequence(s)
  370. short comment to the command
  371. @ref-end-item
  372. @}}}
  373.  
  374. The command name can be reached by pressing one of the keysequences. Except of
  375. the first mentioned sequence, all following sequences may be invalid, depending
  376. on the terminal, you are using (value for $TERM / $ORIGAMITERM). Different
  377. keysequences are limited by `|'. describe-bindings shows all currently
  378. available bindings.
  379. @}}}
  380. @{{{  Buffers
  381. You can edit multiple files with ModeOri. Each file is displayed in a region
  382. on the screen. Each of this windows/buffers contains a complete editor
  383. session. The histories for prompts and the following buffers are shared over
  384. these file buffers.
  385.  
  386. There are three text buffers, which can be used for editing:
  387. @ref-start-tbl Buffer 6 Usage 32
  388. kill @@ collect lines, insert all as a new fold
  389. move @@ can take one line, to move it to another place
  390. delete @@ store the last deleted lines for undo
  391. @ref-end-tbl
  392.  
  393. The contents of this buffers will not be saved when leaving ModeOri (unless
  394. mode buffer-save is active) but will stay on filechanges (`read-file',
  395. `enter-filed-fold', .. ). You can use some macros, to write the contents of
  396. move-, kill- and delete-buffer to file `~/.origamibuf' (or read it from this
  397. file).
  398.  
  399. You can use up to 10 position registers (named 0..9).
  400. @}}}
  401. @{{{  @regexp Origami Regular Expressions
  402. @}}}
  403. @}}}
  404. @{{{  abort
  405. @ref-start-item C-C
  406. Pressing C-C will abort most commands in a save way and brings you back to
  407. Edit-Mode.
  408. @ref-end-item
  409. @}}}
  410. @{{{  Edit-Mode
  411. This mode is marked with `Edit' or `E' in the statusline. It is the
  412. standard-mode for editing and activated at startuptime.
  413.  
  414. @{{{  Moving Around
  415. @{{{  backward/upward
  416. @{{{  backward-character
  417. @ref-start-item esc l e  |  C-S  |  R10  |  left
  418. Move the cursor one character to the left on current line. Do not go to
  419. previous line when reaching the beginning of the line.
  420.  
  421. @{{{  general layout of the keypad
  422. @}}}
  423. @ref-end-item
  424. @}}}
  425. @{{{  backward-word
  426. @ref-start-item esc l w  |  C-Q C-S  |  R13/Meta-R10
  427. Move one word to the left and skip lines, if needed.
  428.  
  429. @{{{  general layout of the keypad
  430. @}}}
  431. @ref-end-item
  432. @}}}
  433. @{{{  beginning-of-line
  434. @ref-start-item esc s l  |  C-A  |  R7  |  begin
  435. Move to first non-space character on line.
  436.  
  437. @{{{  general layout of the keypad
  438. @}}}
  439. @ref-end-item
  440. @}}}
  441. @{{{  previous-line
  442. @ref-start-item esc u p  |  C-E  |  R8  |  up
  443. Go to the previous line on the screen. If file-based mode is active, folds will
  444. be opened to reach the previous line in the file.
  445.  
  446. @{{{  general layout of the keypad
  447. @}}}
  448. @ref-end-item
  449. @}}}
  450. @{{{  previous-page
  451. @ref-start-item esc p u  |  R13/Meta-R1  |  prev_page
  452. Move one screen up.
  453.  
  454. @{{{  general layout of the keypad
  455. @}}}
  456. @ref-end-item
  457. @}}}
  458. @{{{  mtool-top
  459. @ref-start-item esc s f  |  C-Q C-E  |  R13/Meta-R8
  460. Move to the start-fold-comment of the currently opened fold. Do not open or
  461. close any folds. If the cursor is on the beginning of a fold, it's moved to the
  462. beginning of the surrounding fold.
  463.  
  464. @{{{  general layout of the keypad
  465. @}}}
  466. @ref-end-item
  467. @}}}
  468. @{{{  beginning-of-fold
  469. @ref-start-item esc s F  |  R1  |  home
  470. Go to begin-fold-comment of currently entered fold. Do not open or close any
  471. folds. If the cursor is on the end of a fold, it's moved to the end of the
  472. surrounding fold.
  473.  
  474. @{{{  general layout of the keypad
  475. @}}}
  476. @ref-end-item
  477. @}}}
  478. @}}}
  479. @{{{  forward/downward
  480. @{{{  forward-character
  481. @ref-start-item esc r i  |  C-D  |  R12  |  right
  482. Move one character to the right and do not go to the next line at end of line.
  483.  
  484. @{{{  general layout of the keypad
  485. @}}}
  486. @ref-end-item
  487. @}}}
  488. @{{{  forward-word
  489. @ref-start-item esc r w  |  C-Q C-D  |  R13/Meta-R12
  490. Move one word to the right and skip lines, if needed.
  491.  
  492. @{{{  general layout of the keypad
  493. @}}}
  494. @ref-end-item
  495. @}}}
  496. @{{{  end-of-line
  497. @ref-start-item esc e l  |  C-F  |  R9  |  end
  498. Move to last character on line.
  499.  
  500. @{{{  general layout of the keypad
  501. @}}}
  502. @ref-end-item
  503. @}}}
  504. @{{{  next-line
  505. @ref-start-item esc d n  |  C-X  |  R14  |  down
  506. Go to the next line on the screen. If file-based mode is active, folds will be
  507. opened to reach the next line in the file.
  508.  
  509. @{{{  general layout of the keypad
  510. @}}}
  511. @ref-end-item
  512. @}}}
  513. @{{{  next-page
  514. @ref-start-item esc p d  |  R13/Meta-R3  |  next_page
  515. Move on screen down.
  516.  
  517. @{{{  general layout of the keypad
  518. @}}}
  519. @ref-end-item
  520. @}}}
  521. @{{{  mtool-bot
  522. @ref-start-item esc b o  |  C-Q C-X  |  R13/Meta-R14
  523. Go to the bottom of the currently opened fold. Do not open or close any folds.
  524.  
  525. @{{{  general layout of the keypad
  526. @}}}
  527. @ref-end-item
  528. @}}}
  529. @{{{  end-of-fold
  530. @ref-start-item esc b O  |  R3  |  home-down
  531. Go to end-fold-comment of the currently entered fold. Do not open or close any
  532. folds.
  533.  
  534. @{{{  general layout of the keypad
  535. @}}}
  536. @ref-end-item
  537. @}}}
  538. @}}}
  539. @{{{  goto-line
  540. @ref-start-item esc g o  |  C-Q g  |  R13/Meta-g  |  f2 g
  541. ModeOri prompts for a line-number and goes to it. All folds are closed, except
  542. the ones needed to reach the line.
  543. @ref-end-item
  544. @}}}
  545. @{{{  searching
  546. @{{{  goto-matching-brace
  547. @ref-start-item C-B  |  esc m b
  548. ModeOri tries to find the match for the following brace types (Skip1 -> Skip2
  549. [ -> Skip3 ] -> Skip1 .. ):
  550. @ref-start-tbl Language 8 Skip1 10 Skip2 10 Skip3 10
  551. all @@ ( @@ )
  552. all @@ [ @@ ]
  553. all @@ { @@ }
  554. all @@ #ifdef @@ #else @@ #endif
  555. all @@ #if @@ #else @@ #endif
  556. OCL @@ @if-using @@ @fi
  557. @ref-end-tbl
  558. @ref-end-item
  559. @}}}
  560. @{{{  search-forward
  561. @ref-start-item esc f i
  562. ModeOri prompts for a pattern and moves to next occurance. Mark 0 is set to the
  563. search start position.
  564. @ref-end-item
  565. @}}}
  566. @{{{  incremental-search-forward
  567. @ref-start-item esc i s  |  C-Q f  |  R13/Meta-f  |  L9  |  find  |  f2 f
  568. Start the incremental-search-function. ModeOri prompts for characters and moves
  569. to the next matching position. The following actions are supported:
  570.  
  571. @ref-start-item backward-character/forward-character
  572. look for last/next occurance. If this is the first input after starting
  573. incremental-search-forward, the last given pattern is used.
  574. @ref-end-item
  575. @ref-start-item previous-line/next-line
  576. look for a new search pattern in search history.
  577. @ref-end-item
  578. @ref-start-item delete-previous-character
  579. remove the last character from the pattern and go to the position, this
  580. character was added to the pattern.
  581. @ref-end-item
  582. @ref-start-item any text character
  583. add it to the pattern and look for next/previous occurance.
  584. @ref-end-item
  585.  
  586. Mark 0 is set to the search start position.
  587. @ref-end-item
  588. @}}}
  589. @{{{  tags
  590. ModeOri can handle the standard tags format, used by vi:
  591.  
  592. @{{{  find-or-enter-and-go-tags-buffer
  593. @ref-start-item esc t a  |  C-Q t  |  R13/Meta-t
  594. Use the word under the cursor (starting with a letter, containing letters,
  595. digits and `_'), and open a buffer with the tagged file. If this file is
  596. already edited, go to this buffer.
  597.  
  598. If the given tag is not valid, or if ModeOri can not find a corresponding
  599. position, ModeOri prompts for a tag and searches again. `filename-completion'
  600. can be used to omit the end of a tag name.
  601.  
  602. @{{{  @tags-mac-ref Tags file
  603. @}}}
  604. @ref-end-item
  605. @}}}
  606. @{{{  quit-unchanged-to-other-buffer
  607. @ref-start-item esc q t
  608. If the current buffer contains an unchanged file, edited also in an other
  609. buffer, quit this buffer and go to same position in other buffer!
  610. @ref-end-item
  611. @}}}
  612. @{{{  search-next-incorrect-tag-entry
  613. @ref-start-item esc f T
  614. Search for the next line, containing a line, which cannot be handled as a
  615. tags-line by the used tags-library.
  616.  
  617. @{{{  @tags-mac-ref Tags file
  618. @}}}
  619. @ref-end-item
  620. @}}}
  621. @}}}
  622. @}}}
  623. @{{{  marks
  624. @{{{  set-mark-x
  625. @ref-start-item esc s x (x=0,1,..,9)
  626. Store the current file and current line as position for mark x.
  627. @ref-end-item
  628. @}}}
  629. @{{{  go-mark-x
  630. @ref-start-item esc g x (x=0,1,..,9)
  631. Goto mark x. If the mark is in another file and the current file is changed,
  632. save the current file.
  633. @ref-end-item
  634. @}}}
  635. @{{{  push-mark-x
  636. @ref-start-item esc g x (x=0,1,..,9)
  637. Combines enter-fold and go-mark-x.
  638. @ref-end-item
  639. @}}}
  640. @{{{  swap-mark-x
  641. @ref-start-item esc w x (x=0,1,..,9)
  642. Change current position and mark x.
  643. @ref-end-item
  644. @}}}
  645. @{{{  go-last-mark
  646. @ref-start-item esc g m
  647. Go to the mark, used in the last go-mark-x command. If the mark is in another
  648. file and the current file is changed, save the current file.
  649. @ref-end-item
  650. @}}}
  651. @}}}
  652. @}}}
  653. @{{{  Editing
  654. @{{{  newline-and-indent
  655. @ref-start-item return
  656. Opens the current line at cursor-position. If mode auto-indent is active, the
  657. new line gets same indentation as the old.
  658.  
  659. @{{{  using -O
  660. @}}}
  661. @ref-end-item
  662. @}}}
  663. @{{{  Deleting
  664. @{{{  delete-previous-character
  665. @ref-start-item esc b s  |  backspace
  666. Delete the character left from the cursor. Maybe join the current line and the
  667. previous line. If this is used in front of a open-fold-line, the complete fold
  668. will be moved one character to the left.
  669. @ref-end-item
  670. @}}}
  671. @{{{  append-to-previous-line
  672. @ref-start-item esc j o  |  esc backspace
  673. Join the current and the previous line.
  674. @ref-end-item
  675. @}}}
  676. @{{{  delete-character
  677. @ref-start-item esc d c  |  C-G  |  delete
  678. Delete the character under the cursor. Maybe join the current and the next
  679. line. If this is used in front of a open-fold-line, the complete fold will be
  680. moved one character to the left.
  681. @ref-end-item
  682. @}}}
  683. @{{{  delspaces
  684. @ref-start-item esc d s  |  esc delete  |  clreol
  685. Delete all spaces from cursorposition to next non-space or end-of-line.
  686. @ref-end-item
  687. @}}}
  688. @{{{  delete-to-end-of-line
  689. @ref-start-item esc d e  |  C-Y
  690. Delete all characters on the current line from cursor-position to end. The
  691. deleted part is appended to the delete-buffer. If the cursor is in front of a
  692. closed fold, the complete fold is deleted.
  693.  
  694. @{{{  Buffers
  695. @}}}
  696. @ref-end-item
  697. @}}}
  698. @{{{  undo-delete-character
  699. @ref-start-item esc u c
  700. Put the last deleted character at cursor-position in the text.
  701. @ref-end-item
  702. @}}}
  703. @{{{  delete-line
  704. @ref-start-item esc d l  |  C-L  |  R13/Meta-R9  |  delline
  705. Delete the current line.
  706.  
  707. @{{{  Buffers
  708. @}}}
  709. @{{{  general layout of the keypad
  710. @}}}
  711. @ref-end-item
  712. @}}}
  713. @{{{  undo-delete-line
  714. @ref-start-item esc u l  |  C-Q C-L  |  R13/Meta-R7  |  L4
  715. Put the last deleted line at cursor position into the text. This can only be
  716. done for once for each line!
  717.  
  718. @{{{  Buffers
  719. @}}}
  720. @{{{  general layout of the keypad
  721. @}}}
  722. @ref-end-item
  723. @}}}
  724. @}}}
  725. @{{{  quote-character
  726. @ref-start-item C-V
  727. The next character from input will be used directly. If you have bound it to a
  728. function, this binding will be ignored.
  729. @ref-end-item
  730. @}}}
  731. @{{{  transpose-character
  732. @ref-start-item C-T
  733. Transpose the current and the character left from the cursor. Move one step to
  734. the right.
  735. @ref-end-item
  736. @}}}
  737. @{{{  query-replace-string
  738. @ref-start-item esc r p  |  C-Q r  |  R13/Meta-r  |  replace  |  f2 r
  739. Prompt for search and replace pattern and replace them (ask for permission).
  740. Mark 0 is set to the search start position.
  741. @ref-end-item
  742. @}}}
  743. @{{{  double-line
  744. @ref-start-item esc c o  |  C-O  |  R13/Meta-R5  |  copy
  745. A copy of the current line will be put into the text. Folds can also be copied.
  746.  
  747. @{{{  general layout of the keypad
  748. @}}}
  749. @ref-end-item
  750. @}}}
  751.  
  752. @{{{  Edit Buffers
  753. @{{{  move-line
  754. @ref-start-item esc m o  |  C-Q C-O  |  R13/Meta-R2  |  move
  755. If the move-buffer is empty, move current line into the move-buffer. Otherwise
  756. the move-buffer is moved into the text.
  757.  
  758. @{{{  Buffers
  759. @}}}
  760. @{{{  general layout of the keypad
  761. @}}}
  762. @ref-end-item
  763. @}}}
  764. @{{{  kill-line
  765. @ref-start-item esc p i  |  C-K  |  R2  |  L10
  766. Kills the current line and appends it to the kill-buffer. For historical
  767. reasons the TDS/Multitool-name `PICK'-buffer is used for the
  768. escape-keysequence.
  769.  
  770. @{{{  Buffers
  771. @}}}
  772. @{{{  general layout of the keypad
  773. @}}}
  774. @ref-end-item
  775. @}}}
  776. @{{{  copy-to-kill-buffer
  777. @ref-start-item esc c p  |  C-Q C-K  |  R5  |  L6
  778. Puts a copy of the current line at the end of the kill-buffer. For historical
  779. reasons the TDS/Multitool-name `COPY-PICK'-buffer is used for the
  780. escape-keysequence.
  781.  
  782. @{{{  Buffers
  783. @}}}
  784. @{{{  general layout of the keypad
  785. @}}}
  786. @ref-end-item
  787. @}}}
  788. @{{{  insert-folded-kill-buffer
  789. @ref-start-item esc p p  |  C-P  |  R11  |  L8
  790. If the kill-buffer isn't empty, ModeOri inserts a new fold containing all
  791. killed lines into the text.
  792.  
  793. @{{{  Buffers
  794. @}}}
  795. @{{{  general layout of the keypad
  796. @}}}
  797. @ref-end-item
  798. @}}}
  799. @}}}
  800.  
  801. @{{{  Complex Editing Commands
  802. @{{{  wrap-word
  803. @ref-start-item space
  804. Add a space at current position. Using this in front of a open-fold-line moves
  805. the complete fold one space to the right. If wrap-mode is active and the cursor
  806. is at the end of a long line, it will be broken.
  807. @ref-end-item
  808. @}}}
  809. @{{{  change character cases
  810. @ref-start-item toggle-case-word: esc t w  |  C-Q !  |  R13/Meta-!
  811. Toggles the case of all characters of the current word and moves behind it. If
  812. the cursor is not on a word, the cursor is moved to the next word first.
  813. @ref-end-item
  814.  
  815. @ref-start-item uppercase-word: esc u w  |  C-Q u  |  R13/Meta-u
  816. Change all characters of the current word to uppercase and moves the cursor
  817. behind it. If the cursor is not on a word, the cursor is moved to the next word
  818. first.
  819. @ref-end-item
  820.  
  821. @ref-start-item capitalize-word: esc c w  |  C-Q c  |  R13/Meta-c
  822. Capitalizes the current word to uppercase and moves the cursor behind it. If
  823. the cursor is not on a word, the cursor is moved to the next word first.
  824. @ref-end-item
  825.  
  826. @ref-start-item lowercase-word: esc v w  |  C-Q v  |  R13/Meta-v
  827. Change all characters of the current word to lowercase and moves the cursor
  828. behind it. If the cursor is not on a word, the cursor is moved to the next word
  829. first.
  830.  
  831. For historical reasons, this function does not use the binding `esc l
  832. w',`C-Q l' or `R13/Meta-l', because these sequences are already in use.
  833. @ref-end-item
  834. @}}}
  835. @{{{  spell-buffer
  836. @ref-start-item esc s p
  837. Show a buffer containing all misspelled words.
  838.  
  839. @{{{  spell command
  840. @}}}
  841.  
  842. If view-mode is not active, an interactive search and replace will be started.
  843. In this case, the buffer will be removed when leaving the search and replace
  844. loop.
  845.  
  846. The currently handled word is marked with a `+' in the spell error buffer.
  847.  
  848. During the search and replace, the following menu appears. There is no marked
  849. active item, because the cursor is used to mark the current position in the
  850. text (menu items are selected by typing their first character, for example `o'
  851. or `O' for Ok).
  852.  
  853. @ref-start-item Ok Next Replace Edit  Mark   Quit
  854. @{{{  @spelling Ok
  855. Ignore all occurances of the current word. Start handling the next misspelled
  856. word or return to editing environment.
  857. @}}}
  858. @{{{  @spelling Next
  859. Ignore this occurance of the misspelled word.
  860. @}}}
  861. @{{{  @spelling Replace
  862. Specify a new correction, replace this occurance and move to the next one.
  863. @}}}
  864. @{{{  @spelling Edit
  865. Suspend the spell checking and return to editing. Using `spell-buffer' will
  866. continue the spell-check. Changing the buffer or changing the buffer
  867. containing the list of spell-errors makes it impossible, to continue the spell
  868. checking! In this case, a new spell check will be started!
  869.  
  870. During spell-edit, `SpellPause' will be displayed in the status- line.
  871. @}}}
  872. @{{{  @spelling Mark
  873. The handled word will not be removed from the spell error list and the buffer
  874. containing the spell errors will not be removed, at the end of the spell
  875. checking. A marked word uses a `*' instead of a `+' to indicate the currently
  876. handled word.
  877. @}}}
  878. @{{{  @spelling Quit
  879. Exit spell-buffer and return to editing environment.
  880. @}}}
  881. @ref-end-item
  882.  
  883. If you specified a correction with Replace, the menu will be extended:
  884.  
  885. @ref-start-item Ok Next Replace Substitute(correction) All Edit  Mark   Quit
  886. @{{{  @spelling Substitute
  887. Replace the misspelled word using the last correction and move to its next
  888. occurance.
  889.  
  890. This command can only be used, if you have specified a correction for the
  891. misspelled word.
  892. @}}}
  893. @{{{  @spelling All
  894. Replace all occurances.
  895.  
  896. This command can only be used, if you have specified a correction for the
  897. misspelled word.
  898. @}}}
  899. @ref-end-item
  900. @ref-end-item
  901. @}}}
  902. @if-using ( L-EXT )
  903. @{{{  language-struct
  904. @ref-start-item esc l s  |  C-U
  905. Generates some control structures in language OCL/C/Pascal. Available commands
  906. are shown in a menu. Not all languages support all entries!
  907. @ref-end-item
  908. @}}}
  909. @fi
  910. @if-using ( L-EXT )
  911. @{{{  Extended Mode
  912. The following inputs will generate more than themselves, if used in extended
  913. mode:
  914.  
  915. @{{{  (
  916. in languages C OCL Pascal Occam Inmos TeX, the string `()' is generated and
  917. the cursor is moved to the `)' (`[' analogue)
  918. @}}}
  919. @{{{  {
  920. in language C,OCL,Occam or Pascal, a block is put at the right position:
  921.  
  922. @ref-start-item Occam:
  923. @ref-start-picture
  924. SEQ
  925.   foo1
  926.   SEQ
  927.     foo2
  928. @ref-end-picture
  929. @ref-end-item
  930. @ref-start-item C
  931. @ref-start-picture
  932. @if-using not(MY-C-CB)
  933. main (...)
  934.  { char foo;
  935.  
  936.    if (argc)
  937.     { foo='m';
  938.     }
  939.  }
  940. @fi
  941. @if-using (MY-C-CB)
  942. using your indentation
  943. @fi
  944. @ref-end-picture
  945. @ref-end-item
  946. @ref-start-item Pascal:
  947. @ref-start-picture
  948. @if-using not(MY-P-CB)
  949. procedure main(int argc);
  950.   begin
  951.     if (argc>0) then
  952.       begin
  953.         foo:='m';
  954.       end;
  955.   end;
  956. @fi
  957. @if-using (MY-P-CB)
  958. using your indentation
  959. @fi
  960. @ref-end-picture
  961. @ref-end-item
  962. @ref-start-item OCL:
  963. @ref-start-picture
  964. ( deffun test
  965.    ( if x
  966.       ( ...
  967.       )
  968.      fi
  969.    )
  970. )
  971. @ref-end-picture
  972. @ref-end-item
  973. @}}}
  974. @{{{  "
  975. in language C Pascal Occam Inmos, the string `""' is generated and the cursor
  976. is moved to the second `"' (`'' analogue).
  977. @}}}
  978. @{{{  ;
  979. In languages C and Pascal, the statement-delimiter `;' is generated at
  980. end-of-line (if needed). The cursor is moved to the next line.
  981.  
  982. In language OCL move the cursor to the next command place, maybe create a new
  983. line.
  984. @}}}
  985.  
  986. Language OCL is: language User, start comment starts with `;OCL'!
  987. @}}}
  988. @fi
  989. @{{{  tag-completion
  990. @ref-start-item esc t c  |  esc tab
  991. Try to complete the word left from the cursor to a full tag name.
  992.  
  993. @{{{  @tags-mac-ref Tags file
  994. @}}}
  995. @ref-end-item
  996. @}}}
  997. @{{{  filename-completion
  998. @ref-start-item esc f c  |  tab
  999. Complete the string left to the cursor to a valid filename.
  1000. @if-using ( L-EXT )
  1001.  
  1002. If Extended-Mode is active, the word will be completed as tag, if no filename
  1003. completion can be done.
  1004.  
  1005. @{{{  tag-completion
  1006. @}}}
  1007. @fi
  1008. @ref-end-item
  1009. @}}}
  1010. @}}}
  1011. @}}}
  1012. @{{{  Folding
  1013. @{{{  Fold Moving
  1014. @{{{  enter-fold
  1015. @ref-start-item esc e n  |  C-Q C-W  |  R13/Meta-R4  |  f2 f3
  1016. Enter the fold under the cursor. If there is a normal textline, ModeOri tries
  1017. to open the file, named like the current word (starting at cursorposition,
  1018. ending at single-quote, double-quote or space).
  1019.  
  1020. Entering filed folds adds the file to the list of edited files.
  1021.  
  1022. If extended mode is active, ModeOri tries to read the following include
  1023. directives. The standard action will be activated, if no include can be found.
  1024. @ref-start-tbl Language 9 Include 48
  1025. all @@ #include "name"
  1026. all @@ #include <name>
  1027. OCL @@ @lib name
  1028. OCL @@ @include name
  1029. Roff @@ .so
  1030. @ref-end-tbl
  1031.  
  1032. If the file cannot be found in the current-working directory or the directory
  1033. of the current file, the first not empty file in one of the directories in
  1034. ORIGAMILIBPATH (left-to-right, default is `/usr/include:fun') is used.
  1035.  
  1036. @{{{  library path
  1037. @}}}
  1038. @{{{  general layout of the keypad
  1039. @}}}
  1040. @ref-end-item
  1041. @}}}
  1042. @{{{  open-fold
  1043. @ref-start-item esc o p  |  C-W  |  R4  |  open  |  f3
  1044. Open the closed fold under the cursor. Filed folds cannot be opened.
  1045.  
  1046. Using the function twice on the same fold will enter it.
  1047.  
  1048. @{{{  enter-fold
  1049. @}}}
  1050. @{{{  general layout of the keypad
  1051. @}}}
  1052. @ref-end-item
  1053. @}}}
  1054. @{{{  exit fold
  1055. @ref-start-item esc e x  |  C-Q C-R  |  R13/Meta-R6  |  f2 f4
  1056. Exit the currently entered fold, saving the file, if exiting a changed file
  1057. fold. Exiting the toplevel fold will show you the list of edited files.
  1058.  
  1059. @{{{  general layout of the keypad
  1060. @}}}
  1061. @ref-end-item
  1062. @}}}
  1063. @{{{  close-fold
  1064. @ref-start-item esc c l  |  C-R  |  R6  |  close  |  f4
  1065. Close the opened fold the cursor is in.
  1066.  
  1067. Using this function twice without surrounding opened fold will exit a fold.
  1068.  
  1069. @{{{  exit-fold
  1070. @}}}
  1071. @{{{  general layout of the keypad
  1072. @}}}
  1073. @ref-end-item
  1074. @}}}
  1075. @}}}
  1076. @{{{  Fold Editing
  1077. @{{{  auto-header
  1078. @ref-start-item esc a h
  1079. The fold-comment is set to the text of the first line in the fold.
  1080. @ref-end-item
  1081. @}}}
  1082. @{{{  create-fold
  1083. @ref-start-item esc c r  |  C-\  |  R15
  1084. First use enters Move-Mode. Second use in Move-Mode folds the selected region.
  1085. Using create-fold twice on the same position creates an empty fold.
  1086.  
  1087. If Raw-mode is active, the original Origami `create-fold' is used. In this case
  1088. the first use shows a new fold-open line and the second use folds the text from
  1089. this line to current line. The indentation of the fold will be defined by the
  1090. cursor position at the first `create-fold' call.
  1091.  
  1092. @{{{  general layout of the keypad
  1093. @}}}
  1094. @ref-end-item
  1095. @}}}
  1096. @{{{  toggle-file-fold
  1097. @ref-start-item esc f f  |  R13/Meta-R11
  1098. If the current line is a filed-fold, the file is included, so that the fold is
  1099. a normal text-fold. Otherwise ModeOri creates a file (filename is the
  1100. fold-comment) containing the contents of the fold. The current line is replaced
  1101. by a filed-fold for this file.
  1102.  
  1103. @{{{  general layout of the keypad
  1104. @}}}
  1105. @ref-end-item
  1106. @}}}
  1107. @{{{  toggle-attach-file-to-fold
  1108. @ref-start-item esc a t
  1109. If the cursor stands on an empty and closed fold, ModeOri tries to link a file
  1110. to this fold. On success you have a filed-fold, named like the fold-comment.
  1111.  
  1112. Using this function on a filed fold will detach the file from the fold.
  1113. @ref-end-item
  1114. @}}}
  1115. @{{{  unfold-fold
  1116. @ref-start-item esc r e  |  R13/Meta-R15
  1117. Remove a fold, not its contents. The (opened or closed) fold under the cursor
  1118. is used. If the cursor is on a filed fold, this is unfiled using
  1119. toggle-file-fold first, the filename is stored in the file history.
  1120.  
  1121. @{{{  toggle-file-fold
  1122. @}}}
  1123. @{{{  general layout of the keypad
  1124. @}}}
  1125. @ref-end-item
  1126. @}}}
  1127. @}}}
  1128. @{{{  set-language
  1129. @ref-start-item esc l a  |  C-Q l  |  R13/Meta-l  |  f2 l
  1130. Change the patterns to hide fold-comments. ModeOri displays a menu of known
  1131. patterns. If the extended mode is active, this will also change the behaviour
  1132. of the language-dependent commands.
  1133.  
  1134. @ref-start-item None Occam Pascal C Lisp Roff TeX Script  User  Inmos
  1135. @{{{  @lang-types None Occam Pascal C Lisp Roff TeX Script
  1136. These are predefined comments, using the normal text format:
  1137. @ref-start-tbl Language 8 Comment-Start 13 Comment-End 13
  1138. None @@ @@
  1139. Occam @@ -- @@
  1140. Pascal @@ (* @@ *)
  1141. C @@ /* @@ */
  1142. Lisp @@ ; @@
  1143. Roff @@ .\" @@
  1144. TeX @@ % @@
  1145. Script @@ # @@
  1146. @ref-end-tbl
  1147. @}}}
  1148. @{{{  @lang-types User
  1149. Prompts for comment start and end strings.
  1150. @}}}
  1151. @{{{  @lang-types Inmos
  1152. Use the binary file format of TDS (the Transputer Development System).
  1153. @}}}
  1154. @ref-end-item
  1155.  
  1156. @{{{  Select an Menu Item
  1157. You can choose an item by:
  1158.  
  1159. @ref-start-item cursor-motion
  1160. move left/right and return
  1161. @ref-end-item
  1162. @ref-start-item code
  1163. typing the first letter of the item
  1164. @ref-end-item
  1165. @ref-start-item mouse
  1166. click on th menu entry
  1167. @ref-end-item
  1168. @}}}
  1169. @ref-end-item
  1170. @}}}
  1171. @{{{  fold-mark-menu
  1172. @ref-start-item esc f m
  1173. Change the current marks for folds to other strings. You can use the standard
  1174. strings (Default `{{{:::...}}}', Pascal `<<<:::...>>>', and Script `##@##:...##$') or
  1175. enter a new coding.
  1176.  
  1177. @{{{  using default command line options
  1178. @}}}
  1179. @ref-end-item
  1180. @}}}
  1181. @}}}
  1182. @{{{  Files
  1183. @{{{  insert-file
  1184. @ref-start-item esc i n  |  C-Q i  |  R13/Meta-i  |  f2 i  |  f8
  1185. Prompts for a file, which should be included at current cursorposition.
  1186. @ref-end-item
  1187. @}}}
  1188. @{{{  insert-tags-file
  1189. @ref-start-item esc i T
  1190. Like insert-file, uses the current tags file.
  1191.  
  1192. @{{{  @tags-mac-ref Tags file
  1193. @}}}
  1194. @ref-end-item
  1195. @}}}
  1196. @{{{  buffers
  1197. @{{{  open-buffer
  1198. @ref-start-item esc o b
  1199. Split the current window and ask for the new file, to be edited in the new
  1200. window. The new file will be added to the list of edited files.
  1201. @ref-end-item
  1202. @}}}
  1203. @{{{  open-list-buffer
  1204. @ref-start-item esc o B
  1205. Like `open-buffer', but asks for the file number in the list of edited files.
  1206.  
  1207. @{{{  open-buffer
  1208. @}}}
  1209. @ref-end-item
  1210. @}}}
  1211. @{{{  open-adjacent-buffer
  1212. @ref-start-item esc a b
  1213. Like `open-buffer', but the buffers are adjacent.
  1214.  
  1215. @{{{  open-buffer
  1216. @}}}
  1217. @ref-end-item
  1218. @}}}
  1219. @{{{  open-list-adjacent-buffer
  1220. @ref-start-item esc a B
  1221. Like `open-list-buffer', but the buffers are adjacent.
  1222.  
  1223. @{{{  open-list-buffer
  1224. @}}}
  1225. @ref-end-item
  1226. @}}}
  1227. @{{{  previous-buffer
  1228. @ref-start-item esc n b
  1229. Skip to previous buffer.
  1230. @ref-end-item
  1231. @}}}
  1232. @{{{  next-buffer
  1233. @ref-start-item esc n b
  1234. Skip to next buffer.
  1235. @ref-end-item
  1236. @}}}
  1237. @{{{  list-buffers
  1238. @ref-start-item esc l b
  1239. Display a screen sized window, containing a list of all active buffers and
  1240. offer a menu, for selecting the next buffer to edit.
  1241. @ref-end-item
  1242. @}}}
  1243. @{{{  Special Buffers
  1244. @{{{  open-buffer-tags-file
  1245. @ref-start-item esc o T
  1246. Like `open-buffer', but uses the current tags-file.
  1247.  
  1248. @{{{  open-buffer
  1249. @}}}
  1250. @{{{  tags-file
  1251. @}}}
  1252. @ref-end-item
  1253. @}}}
  1254. @{{{  open-adjacent-buffer-tags-file
  1255. @ref-start-item esc a T
  1256. Like `open-buffer-tags-file', but the buffers are adjacent.
  1257.  
  1258. @{{{  open-buffer-tags-file
  1259. @}}}
  1260. @{{{  tags-file
  1261. @}}}
  1262. @ref-end-item
  1263. @}}}
  1264. @{{{  open-error-buffer
  1265. @ref-start-item esc o e
  1266. Show the message history. Offers a menu for controlling the display.
  1267. @ref-end-item
  1268. @}}}
  1269. @}}}
  1270. @}}}
  1271. @{{{  unchange-and-reread-file
  1272. @ref-start-item esc r r
  1273. Cancel all changes and read the file again.
  1274. @ref-end-item
  1275. @}}}
  1276. @{{{  save-file
  1277. @ref-start-item esc s a  |  C-Q s  |  R13/Meta-s  |  f2 s  |  f6
  1278. Saves the current file. If buffer-save mode is active, kill-, delete- and
  1279. move-buffer are stored.
  1280.  
  1281. @{{{  Buffers
  1282. @}}}
  1283. @ref-end-item
  1284. @}}}
  1285. @{{{  write-file
  1286. @ref-start-item esc w f  |  C-Q w  |  R13/Meta-w  |  f2 w
  1287. Prompts for a filename and write the current text to this files. If not using
  1288. folding-language TDS, ModeOri prompts, whether fold marks should be written or
  1289. not.
  1290. @ref-end-item
  1291. @}}}
  1292. @{{{  change current file
  1293. @{{{  read-file
  1294. @ref-start-item esc o f  |  C-Q o  |  R13/Meta-o  |  f2 o  |  f7
  1295. Prompts for the next file to be edited. If the current one was changed, ModeOri
  1296. prompts for permission to change the file. The new file will be added to the
  1297. list of edited files.
  1298. @ref-end-item
  1299. @}}}
  1300. @{{{  read-list-file
  1301. @ref-start-item esc r F
  1302. Prompt for a number and open the file number in the list of edited files.
  1303. @ref-end-item
  1304. @}}}
  1305. @{{{  change-buffername
  1306. @ref-start-item esc c b  |  f9
  1307. Prompts for a new name for the file in the currently edited buffer. Does not
  1308. save the file under the new name and does not remove the old file
  1309. autmomaticlly!
  1310. @ref-end-item
  1311. @}}}
  1312. @{{{  previous-file
  1313. @ref-start-item esc p f
  1314. Switch to previous file, given on command line or in the list of edited files.
  1315. @ref-end-item
  1316. @}}}
  1317. @{{{  next-file
  1318. @ref-start-item esc n f
  1319. Switch to the next file given on command line or in the list of edited files.
  1320. @ref-end-item
  1321. @}}}
  1322. @{{{  enter-list-file
  1323. @ref-start-item esc p l
  1324. Prompt for a number and enters the file number in the list of edited files
  1325. (like `enter-fold').
  1326. @ref-end-item
  1327. @}}}
  1328. @}}}
  1329. @{{{  set-file-unchanged
  1330. @ref-start-item esc - c
  1331. The status of the current file will be unchanged, even if you have made
  1332. changes!
  1333.  
  1334. This is NO undo-all-edits!
  1335. @ref-end-item
  1336. @}}}
  1337. @}}}
  1338. @{{{  Helps and Exits
  1339. @{{{  center-and-redraw-display
  1340. @ref-start-item esc r f  |  C-Q C-Q  |  R13/Meta-R13  |  refresh  |  f2 f2
  1341. Refresh the screen and show the current line in the middle of your display.
  1342.  
  1343. @{{{  general layout of the keypad
  1344. @}}}
  1345. @ref-end-item
  1346. @}}}
  1347. @{{{  describe-fold
  1348. @ref-start-item esc f ?
  1349. Show the following information:
  1350.  
  1351. @ref-start-item Line Column Character Entered-folds Entered-Spaces
  1352. If the cursor stands on a foldline, additional information about
  1353. foldtype/-contents (in TDS-coding) is given.
  1354. @ref-end-item
  1355. @ref-end-item
  1356. @}}}
  1357. @{{{  describe-bindings
  1358. @ref-start-item esc h b  |  C-Q ?  |  R13/Meta-?  |  help
  1359. Show all known functions and their key sequences.
  1360.  
  1361. @{{{  @hcmd help-menu
  1362. The display is controlled by the following menu:
  1363.  
  1364. @ref-start-item space(next-page) newline(next-line) Back Quit Filter Search Kill
  1365. @{{{  space(next-page)
  1366. Show next screen of information
  1367. @}}}
  1368. @{{{  newline(next-line)
  1369. Scroll up one line.
  1370. @}}}
  1371. @{{{  Back
  1372. Show previous screen of information
  1373. @}}}
  1374. @{{{  Quit
  1375. End the display and return to editing.
  1376. @}}}
  1377. @{{{  Filter
  1378. Prompts for a string. From now on, only lines matching this string are
  1379. displayed. This filtering ignores the state of the regular expression mode.
  1380. @}}}
  1381. @{{{  Search
  1382. Skip to the next line, matching the given search string.
  1383. @}}}
  1384. @{{{  Kill
  1385. Copy the actual information to the kill-buffer and return to editing.
  1386.  
  1387. @{{{  Buffers
  1388. @}}}
  1389. @}}}
  1390. @ref-end-item
  1391. @}}}
  1392. @ref-end-item
  1393. @}}}
  1394. @if-using not( NO-HELP-BROWSER )
  1395. @{{{  info
  1396. @ref-start-item esc i f
  1397. Start the interactive ModeOri information display. The reference card is
  1398. generated automagically, using the same data. The used menu contains:
  1399.  
  1400. @ref-start-item Quit Back space(Next) Back Kill 1 2 ..
  1401. @{{{  @info-ref Quit
  1402. Leave the reference browser.
  1403. @}}}
  1404. @{{{  @info-ref Up
  1405. Return to previously viewed reference page.
  1406. @}}}
  1407. @{{{  @info-ref space(Next)
  1408. Move one page down.
  1409. @}}}
  1410. @{{{  @info-ref Back
  1411. Move one page up.
  1412. @}}}
  1413. @{{{  @info-ref Kill
  1414. Copy the current page to the kill-buffer.
  1415.  
  1416. @{{{  Buffers
  1417. @}}}
  1418. @}}}
  1419. @{{{  @info-ref 1 2 ..
  1420. Enter the selected reference page. These menu entries only exist, if there are
  1421. corresponding reference pages!
  1422. @}}}
  1423. @ref-end-item
  1424.  
  1425. @{{{  Select an Menu Item
  1426. @}}}
  1427. @ref-end-item
  1428. @}}}
  1429. @fi
  1430. @{{{  help
  1431. @ref-start-item esc h e  |  C-Q h  |  R13/Meta-h  |  f2 h
  1432. Show the help file. There is no default file for it. You can put anything you
  1433. want into this textfile.
  1434.  
  1435. @{{{  @hcmd help-menu
  1436. @}}}
  1437. @if-using not( NO-HELP-BROWSER )
  1438.  
  1439. In verbose-mode, a missing help file will be replaced by the interactive
  1440. ModeOri information display, or if language C is active, the C-Operator
  1441. precedence will be displayed. If verbose-mode is not active, a missing help
  1442. file will be replaced by the list of used paths. In this case, you can enter
  1443. the interactive ModeOri information display by pressing `I'!
  1444.  
  1445. @{{{  info
  1446. @}}}
  1447. @fi
  1448. @ref-end-item
  1449. @}}}
  1450.  
  1451. @{{{  exit-buffer
  1452. @ref-start-item esc q u  |  C-Q q  |  R13/Meta-q  |  exit  |  f2 q  |  f10
  1453. This functions leaves the current buffer. If the current file was changed,
  1454. ModeOri prompts for permission to leave. If the current buffer is the only one,
  1455. the command leaves ModeOri. If buffer-save mode is active, kill-, delete- and
  1456. move-buffer are stored to file.
  1457. @if-using ( SHELL-MODE )
  1458.  
  1459. @{{{  @exit-buffer Restrictions in shell mode
  1460. Exiting the last buffer will restart the shell mode, if command line options
  1461. -Oshell or -Oxshell are active.
  1462.  
  1463. @{{{  using -O
  1464. @}}}
  1465. @}}}
  1466. @fi
  1467. @ref-end-item
  1468. @}}}
  1469. @{{{  save-and-exit-buffer
  1470. @ref-start-item esc s e  |  C-K C-D
  1471. Leave the current buffer, and save the file, if it's changed. If the current
  1472. buffer is the last one, this Command leaves ModeOri. If buffer-save mode is
  1473. active, kill-, delete and move-buffer are stored to file.
  1474. @if-using ( SHELL-MODE )
  1475.  
  1476. @{{{  @exit-buffer Restrictions in shell mode
  1477. @}}}
  1478. @fi
  1479. @ref-end-item
  1480. @}}}
  1481. @{{{  exit-origami
  1482. @ref-start-item esc q a
  1483. Repeat exit-buffer, while the current buffer is unchanged.
  1484. @if-using ( SHELL-MODE )
  1485.  
  1486. @{{{  @exit-origami Restrictions in shell mode
  1487. This command is disabled, if command line options -Oshell or -Oxshell are
  1488. active.
  1489.  
  1490. @{{{  using -O
  1491. @}}}
  1492. @}}}
  1493. @fi
  1494. @{{{  exit-buffer
  1495. @}}}
  1496. @ref-end-item
  1497. @}}}
  1498. @}}}
  1499. @{{{  Macros
  1500. @{{{  define-macro
  1501. @ref-start-item esc d m  |  C-Q d  |  R13/Meta-d
  1502. Start or stop the storing of keyboard inputs in keyboard macro.
  1503. @ref-end-item
  1504. @}}}
  1505. @{{{  execute-macro
  1506. @ref-start-item esc c m  |  C-Q m  |  R13/Meta-m
  1507. Call keyboard macro.
  1508. @ref-end-item
  1509. @}}}
  1510. @{{{  user-macro-x,x=0..9
  1511. @ref-start-item esc m x  (x=0,1,..,9)
  1512. Call the user macro x.
  1513. @ref-end-item
  1514. @}}}
  1515. @{{{  def-user-macro
  1516. @ref-start-item esc d u
  1517. Prompt for a user macro and save the keyboard macro to it.
  1518. @ref-end-item
  1519. @}}}
  1520. @}}}
  1521. @{{{  Advanced Commands
  1522. @{{{  Shell
  1523. @{{{  shell
  1524. @ref-start-item esc s h
  1525. ModeOri will start a shell for you. Exiting the shell will start ModeOri again.
  1526. @ref-end-item
  1527. @}}}
  1528. @{{{  shell-command
  1529. @ref-start-item esc s c
  1530. ModeOri prompts for a shell command. This command will be executed.
  1531. @ref-end-item
  1532. @}}}
  1533. @{{{  suspend-origami
  1534. @ref-start-item esc s u  |  C-Z  |  suspend
  1535. ModeOri stops and you are back in your shell.
  1536.  
  1537. @{{{  using default command line options
  1538. @}}}
  1539. @ref-end-item
  1540. @}}}
  1541. @{{{  filter-line
  1542. @ref-start-item esc f l
  1543. Filter the contents of the current textline or fold through the given filter.
  1544. @ref-end-item
  1545. @}}}
  1546. @{{{  filter-buffer
  1547. @ref-start-item esc f b
  1548. ModeOri prompts for a filter and pipes the current text through it. Files in
  1549. language Inmos cannot be filtered.
  1550. @ref-end-item
  1551. @}}}
  1552. @{{{  pipe-from-command
  1553. @ref-start-item esc < p
  1554. Prompt for a command and add the output of this command to the text.
  1555. @ref-end-item
  1556. @}}}
  1557. @{{{  pipe-to-command
  1558. @ref-start-item esc > p
  1559. Prompt for a command and run it with current text as input.
  1560. @ref-end-item
  1561. @}}}
  1562. @{{{  call-make
  1563. @ref-start-item esc m a  |  f5
  1564. Call make. This will be done in the directory of the currently edited file.
  1565.  
  1566. @{{{  make command
  1567. @}}}
  1568. @ref-end-item
  1569. @}}}
  1570. @{{{  call-postbox
  1571. @ref-start-item esc p o
  1572. Call your mail handling utility. This will be done in the directory of the
  1573. currently edited file.
  1574.  
  1575. @{{{  mail command
  1576. @}}}
  1577. @ref-end-item
  1578. @}}}
  1579. @}}}
  1580. @{{{  get-buffers-from-file
  1581. @ref-start-item esc < b
  1582. Get kill-, move- and delete-buffer from file `~/.origamibuff'.
  1583. @ref-end-item
  1584. @}}}
  1585. @{{{  dump-buffers-to-file
  1586. @ref-start-item esc > b
  1587. Save kill-, move- and delete-buffer to file `~/.origamibuff'.
  1588. @ref-end-item
  1589. @}}}
  1590. @if-using ( W-GET-X-SEL )
  1591. @{{{  get-selection
  1592. @ref-start-item esc g s
  1593. Paste the selection of your window environment before current line into the
  1594. text.
  1595.  
  1596. @{{{  selection
  1597. @}}}
  1598. @ref-end-item
  1599. @}}}
  1600. @fi
  1601. @{{{  fill-paragraph
  1602. @ref-start-item esc s space
  1603. fill-paragraph beautifies normal text. It splitts long lines. It can fill the
  1604. lines, to have all the same length. The functions `set-fill-column' and
  1605. `set-fill-mode' control, how this wil be done.
  1606.  
  1607. Filling can be done in two modes:
  1608.  
  1609. @ref-start-item Shrink
  1610. reduce the size of the lines to minimum
  1611. @ref-end-item
  1612. @ref-start-item Block
  1613. fill lines with spaces, to match the right margin
  1614. @ref-end-item
  1615.  
  1616. The filling modifies all lines, up to the first line
  1617.  
  1618. @ref-start-item
  1619. using another indentation
  1620. @ref-end-item
  1621. @ref-start-item or
  1622. non text line
  1623. @ref-end-item
  1624. @ref-start-item or
  1625. starting with begin-fold-comment string
  1626. @ref-end-item
  1627. @ref-start-item or
  1628. starting with `.', if shrink and language Roff are active
  1629. @ref-end-item
  1630. @ref-start-item or
  1631. starting with `\', if shrink and language TeX are active
  1632. @ref-end-item
  1633. @ref-end-item
  1634.  
  1635. @{{{  set-fill-mode
  1636. @ref-start-item esc s m
  1637. Offer a menu, for selecting Shrink or Block and defining the right margin for
  1638. filling.
  1639. @ref-end-item
  1640. @}}}
  1641. @{{{  set-fill-column
  1642. @ref-start-item esc s .
  1643. Set the right fill margin
  1644. @ref-start-item
  1645. to set-argument value, if used
  1646. @ref-end-item
  1647. @ref-start-item or
  1648. to cursor position, if behind column 20
  1649. @ref-end-item
  1650. @ref-start-item or
  1651. prompt fot the new value
  1652. @ref-end-item
  1653. @ref-end-item
  1654. @}}}
  1655. @}}}
  1656. @{{{  set-argument-x
  1657. @ref-start-item esc x  |  R13/Meta-x     (x=0..9)
  1658. All number inputs will be appended to x and the following command will be
  1659. repeated according to x.
  1660. @ref-end-item
  1661. @}}}
  1662. @{{{  no-overstrike
  1663. @ref-start-item esc n o
  1664. Remove all overstrikes in the text. These are backspace-characters, which are
  1665. used in roff/man, to print bold or underlined characters.
  1666. @ref-end-item
  1667. @}}}
  1668. @}}}
  1669. @{{{  Modes
  1670. @{{{  switch-to-move-mode
  1671. @ref-start-item esc esc
  1672. Switches to Move-Mode and uses current position as start-mark.
  1673.  
  1674. @{{{  Edit-Mode and Move-Mode
  1675. @}}}
  1676. @ref-end-item
  1677. @}}}
  1678. @{{{  switch-on-buffer-handling
  1679. @ref-start-item esc b u  | C-Q b  |  R13/Meta-b
  1680. Switch to Buffer-Handling-Mode.
  1681.  
  1682. @{{{  Buffers
  1683. @}}}
  1684. @ref-end-item
  1685. @}}}
  1686. @{{{  set-display-mode
  1687. @ref-start-item esc + d
  1688. Show a menu for selecting the character display mode:
  1689.  
  1690. @ref-start-item Quit  Octal Decimal Hex  Mark Invers Number  Tab(n)  Plain 8-Bit All
  1691. @{{{  @set-dsp Quit
  1692. Leave the menu
  1693. @}}}
  1694. @{{{  @set-dsp Octal
  1695. Numbered character display uses octal format `\xxx'.
  1696. @}}}
  1697. @{{{  @set-dsp Decimal
  1698. Numbered character display uses decimal format `\dxxx'.
  1699. @}}}
  1700. @{{{  @set-dsp Hex
  1701. Numbered character display uses hexadecimal format `\xx'.
  1702. @}}}
  1703. @{{{  @set-dsp Mark
  1704. Show control characters with `^' followed by the code (C-A -> ^A).
  1705. @}}}
  1706. @{{{  @set-dsp Invers
  1707. Show control characters as inverse code (C-A -> invers A).
  1708. @}}}
  1709. @{{{  @set-dsp Number
  1710. Show control characters numbered (C-A -> \01 in hexadecimal mode).
  1711. @}}}
  1712. @{{{  @set-dsp Tab(n)  -  n is the active size
  1713. Prompts for the width of a tab. Negative values and the value 0 will show the
  1714. tab as a normal control character.
  1715. @}}}
  1716. @{{{  @set-dsp Plain
  1717. Show normal characters by themselves. If the terminal supports this, characters
  1718. with set highbit will also be displayed by themselves.
  1719. @}}}
  1720. @{{{  @set-dsp 8-Bit
  1721. Show characters with set highbit numbered.
  1722. @}}}
  1723. @{{{  @set-dsp All
  1724. Show all characters numbered.
  1725. @}}}
  1726. @ref-end-item
  1727.  
  1728. @{{{  Select an Menu Item
  1729. @}}}
  1730. @ref-end-item
  1731. @}}}
  1732. @{{{  mode-extended
  1733. This mode is controlled by the functions:
  1734.  
  1735. @ref-start-item set-mode-raw  esc + r
  1736. @ref-end-item
  1737. @ref-start-item add-mode-extended  esc + x  |  esc - r
  1738. @ref-end-item
  1739. @ref-start-item delete-mode-extended  esc - x
  1740. @ref-end-item
  1741. Enables or disables the extended mode. If mode raw (marked with `Raw' or `R')
  1742. is activated, `create-fold' does not switch to Move-Mode! `add-mode-extended'
  1743. and `delete-mode-extended' switch off mode raw.
  1744. @if-using not( L-EXT )
  1745.  
  1746. There is no difference between add-mode-extended and delete-mode-extended,
  1747. because this version of ModeOri does not support the extended mode!
  1748. @fi
  1749.  
  1750. @if-using ( L-EXT )
  1751. @{{{  Extended-Mode
  1752. @}}}
  1753. @fi
  1754. @{{{  using -O
  1755. @}}}
  1756. @{{{  create-fold
  1757. @}}}
  1758. @}}}
  1759. @{{{  mode-autosave
  1760. @ref-start-item esc + a
  1761. Prompt for a autosave time (in minutes). When active, `AutoSave' or `S' are
  1762. displayed in the statusline.
  1763.  
  1764. @{{{  using default command line options
  1765. @}}}
  1766. @ref-end-item
  1767. @ref-start-item esc - a
  1768. Disable automatic file saving.
  1769.  
  1770. @{{{  using default command line options
  1771. @}}}
  1772. @ref-end-item
  1773. @}}}
  1774. @{{{  mode-[basic|extended]-regular-expression
  1775. @ref-start-item add-mode-basic-regular-expression  esc + m
  1776. @ref-end-item
  1777. @ref-start-item add-mode-extended-regular-expression  esc + M
  1778. @ref-end-item
  1779. @ref-start-item delete-mode-regular-expression  esc - m  |  esc - M
  1780. @ref-end-item
  1781. `query-replace', `search-forward' and `incremental-search-forward' read the
  1782. search- and replace-pattern as regular expressions. You choose between extended
  1783. regular expressions (like egrep) or basic regular expressions (like vi).
  1784.  
  1785. Marks in the statusline are `Magic' or `Ma' for basic and `XMagic' or`XM' for
  1786. extended regular expression mode.
  1787.  
  1788. @{{{  using -O
  1789. @}}}
  1790. @{{{  origami regular expressions
  1791. @}}}
  1792. @}}}
  1793. @{{{  easy modes
  1794. All other modes are controlled by typing:
  1795.  
  1796. @ref-start-item on:
  1797. esc + code
  1798. @ref-end-item
  1799. @ref-start-item off:
  1800. esc - code
  1801. @ref-end-item
  1802. @ref-start-item toggle:
  1803. esc ! code (only possible for modes, marked with (!) )
  1804. @ref-end-item
  1805. @ref-start-tbl Code 4 Name 12 Tag 10 Mode 35
  1806. b @@ buffer-save @@ BuSa @@ kill/move/delete:
  1807. @@ @@ @@ save on file-save
  1808. @@ @@ @@ read on startup
  1809. c @@ center @@ @@ Center current line
  1810. e @@ echo @@ @@ Show keysequences
  1811. f @@ full-shift @@ @@ Shift whole screen
  1812. h @@ hash-shift @@ @@ Shift leading `#' to
  1813. @@ @@ @@ line start on write
  1814. @@ @@ @@ first nonspace on read
  1815. H @@ highlight @@ @@ Highlight in Move-Mode
  1816. i @@ auto-indent @@ > @@ newline use old indent
  1817. l @@ autolanguage @@ AutoLang @@ Automatic language set
  1818. L(!) @@ diredit-long @@ @@ diredit: show filetypes..
  1819. o(!) @@ overwrite @@ Over @@ Replace chars, no insert
  1820. p(*) @@ parse @@ NoParse @@ Parse folds on file read
  1821. P(!) @@ position @@ @@ Show line/column
  1822. s @@ statusline @@ @@ Show statusline
  1823. @if-using ( SHELL-MODE )
  1824. S(-) @@ shell @@ @@ like -Oshell or -Oxshell
  1825. @fi
  1826. t @@ time @@ @@ Show actual time
  1827. v @@ view @@ View @@ Disable file-changes
  1828. V @@ verbose @@ @@ Additional error messages
  1829. w @@ wrap @@ Wrap @@ Automatic wrap around
  1830. % @@ file-based @@ % @@ up/down open/close folds
  1831. @ref-end-tbl
  1832.  
  1833. @ref-start-item (*)
  1834. The tag is displayed, while the mode is not active.
  1835. @ref-end-item
  1836. @ref-start-item (!)
  1837. The mode can be toggled.
  1838. @ref-end-item
  1839. @if-using ( SHELL-MODE )
  1840. @ref-start-item (+)
  1841. The mode can only be switched on.
  1842. @ref-end-item
  1843. @fi
  1844.  
  1845. @{{{  using default command line options
  1846. @}}}
  1847. @{{{  using -O
  1848. @}}}
  1849. @{{{  wrap around
  1850. @}}}
  1851. @{{{  Line-Movement-Mode
  1852. @}}}
  1853. @{{{  @autolang-ref auto-language switching
  1854. @}}}
  1855. @}}}
  1856. @}}}
  1857. @{{{  main-menu
  1858. @ref-start-item esc m m  |  f1
  1859. Show a menu under the statusline.
  1860.  
  1861. Pressing f1 twice will display the binding-list. The menu offers the following
  1862. functions and sub menus:
  1863.  
  1864. @ref-start-item Ok Bindings Info Help File MoveMode Para ToggleModes Window Exit
  1865. @{{{  @main-menu Ok
  1866. Leave the menu.
  1867. @}}}
  1868. @{{{  @main-menu Bindings
  1869. Display currently available keybindings.
  1870.  
  1871. @{{{  describe-bindings
  1872. @}}}
  1873. @}}}
  1874. @{{{  @main-menu Info
  1875. @if-using ( NO-HELP-BROWSER )
  1876. This version does not support the interactive ModeOri information display. info
  1877. calls help.
  1878.  
  1879. @fi
  1880. @if-using not( NO-HELP-BROWSER )
  1881. Start interactive ModeOri information display
  1882.  
  1883. @{{{  info
  1884. @}}}
  1885. @fi
  1886. @}}}
  1887. @{{{  @main-menu Help
  1888. Display your helpfile.
  1889.  
  1890. @{{{  help
  1891. @}}}
  1892. @}}}
  1893. @{{{  @main-menu File
  1894. Show a menu for file handling. You can choose:
  1895.  
  1896. @ref-start-item Ok Save Unchange Read Insert List-of-edited-files
  1897. @ref-see-also C-> %s.
  1898. @{{{  @main-menu Ok
  1899. @}}}
  1900. @ref-see-also See also in %s.
  1901. @{{{  @main-menu-file Save
  1902. Save the current file.
  1903.  
  1904. @{{{  save-file
  1905. @}}}
  1906. @}}}
  1907. @{{{  @main-menu-file Unchange
  1908. Set the status of the current file to unchanged.
  1909.  
  1910. @{{{  set-file-unchanged
  1911. @}}}
  1912. @}}}
  1913. @{{{  @main-menu-file Read
  1914. Prompts for a filename and changes the currently edited file.
  1915.  
  1916. @{{{  read-file
  1917. @}}}
  1918. @}}}
  1919. @{{{  @main-menu-file Insert
  1920. Prompts for a filename to be inserted at the current position.
  1921.  
  1922. @{{{  insert-file
  1923. @}}}
  1924. @}}}
  1925. @{{{  @main-menu-file List-of-edited-files
  1926. Changes the current file to the list of edited files.
  1927. @}}}
  1928. @ref-end-item
  1929. @}}}
  1930. @{{{  @main-menu MoveMode
  1931. Enter Move-Mode.
  1932.  
  1933. @{{{  switch-to-move-mode
  1934. @}}}
  1935. @}}}
  1936. @{{{  @main-menu Para
  1937. Show a menu for switching some parameters. Display `SetParameter' in the status
  1938. line. You can choose:
  1939.  
  1940. @ref-start-item Ok FileParameter DirEdit CommandParameter set-display-mode
  1941. @ref-see-also C-> %s.
  1942. @{{{  @main-menu Ok
  1943. @}}}
  1944. @ref-see-also See also in %s.
  1945. @{{{  @main-menu-para FileParameter
  1946. Show a menu for changing some parameters of the current file. You can choose:
  1947.  
  1948. @ref-start-item Ok Language Fold-marks
  1949. @{{{  @main-menu-f-para Ok
  1950. Leave the menu.
  1951. @}}}
  1952. @{{{  @main-menu-f-para Language
  1953. Change the current fold language.
  1954.  
  1955. @{{{  set-language
  1956. @}}}
  1957. @}}}
  1958. @{{{  @main-menu-f-para Fold-marks
  1959. Change the current fold mark strings.
  1960.  
  1961. @{{{  fold-mark-menu
  1962. @}}}
  1963. @}}}
  1964. @ref-end-item
  1965.  
  1966. @{{{  Select an Menu Item
  1967. @}}}
  1968. @}}}
  1969. @{{{  @main-menu-para Diredit
  1970. Display the following menu for changing the directory filters:
  1971.  
  1972. @ref-start-item Ok ToggleLong Match(e1) NoMatch(e2)
  1973. @{{{  @main-menu-d-para Ok
  1974. Leave the menu.
  1975. @}}}
  1976. @{{{  @main-menu-d-para ToggleLong
  1977. Toggle the long display mode for directory editing.
  1978.  
  1979. @{{{  easy modes
  1980. @}}}
  1981. @}}}
  1982. @{{{  @main-menu-d-para Match
  1983. Change the regular expression, which is used to specify allowed diredit files
  1984. (e1 is the active expression).
  1985.  
  1986. @{{{  using default command line options
  1987. @}}}
  1988. @{{{  spaces in old menu item values
  1989. If the old value for the menu item contains spaces, ModeOri displays them as _
  1990. in the brackets.
  1991. @}}}
  1992. @}}}
  1993. @{{{  @main-menu-d-para NoMatch
  1994. Change the regular expression, which is used to specify the not allowed diredit
  1995. files (e2 is the active expression).
  1996.  
  1997. @{{{  using default command line options
  1998. @}}}
  1999. @{{{  spaces in old menu item values
  2000. @}}}
  2001. @}}}
  2002. @ref-end-item
  2003.  
  2004. @{{{  Select an Menu Item
  2005. @}}}
  2006. @}}}
  2007. @{{{  @main-menu-para CommandParameter
  2008. Display a menu for changing some ModeOri function parameters:
  2009.  
  2010. @ref-start-item Ok Spell(s) Make(m) Postbox(p) TagsFile(f)
  2011. @{{{  @main-menu-c-para Ok
  2012. Leave the menu.
  2013. @}}}
  2014. @{{{  @main-menu-c-para Spell(s)
  2015. Change the spell checker command (s is the active one).
  2016.  
  2017. @{{{  using -O
  2018. @}}}
  2019. @{{{  spaces in old menu item values
  2020. @}}}
  2021. @}}}
  2022. @{{{  @main-menu-c-para Make(m)
  2023. Change the make command (m is the active one).
  2024.  
  2025. @{{{  using -O
  2026. @}}}
  2027. @{{{  spaces in old menu item values
  2028. @}}}
  2029. @}}}
  2030. @{{{  @main-menu-c-para Postbox(p)
  2031. Change the mail handling command (p is the active one).
  2032.  
  2033. @{{{  using -O
  2034. @}}}
  2035. @{{{  spaces in old menu item values
  2036. @}}}
  2037. @}}}
  2038. @{{{  @main-menu-f-para TagsFile(f)
  2039. Change the current tags file (f is the active one - default is displayed, if
  2040. the default file list is used).
  2041.  
  2042. @{{{  using -O
  2043. @}}}
  2044. @{{{  @tags-mac-ref Tags file
  2045. @}}}
  2046. @{{{  spaces in old menu item values
  2047. @}}}
  2048. @}}}
  2049. @ref-end-item
  2050. @if-using ( SHELL-MODE )
  2051.  
  2052. This version of ModeOri supports the additional menu entires:
  2053.  
  2054. @ref-start-item Nn(n) EnableShell
  2055. @{{{  @main-menu-c-para Nn(n)
  2056. Change the news reader command (n is the active one).
  2057.  
  2058. @{{{  using -O
  2059. @}}}
  2060. @{{{  spaces in old menu item values
  2061. @}}}
  2062. @}}}
  2063. @{{{  @main-menu-c-para EnableShell
  2064. Switch on the ModeOriShell after exiting the last buffer.
  2065.  
  2066. @{{{  add-mode-shell
  2067. @}}}
  2068. @}}}
  2069. @ref-end-item
  2070. @fi
  2071.  
  2072. @{{{  Select an Menu Item
  2073. @}}}
  2074. @}}}
  2075. @{{{  set-display-mode
  2076. @}}}
  2077. @ref-end-item
  2078.  
  2079. @{{{  Select an Menu Item
  2080. @}}}
  2081. @}}}
  2082. @{{{  @main-menu ToggleModes
  2083. Show a menu for switching modes. Display ToggleModes in the status line. You
  2084. can choose:
  2085.  
  2086. @ref-start-item Ok View Extend Autosave Write-over Position
  2087. @ref-see-also C-> %s.
  2088. @{{{  @main-menu Ok
  2089. @}}}
  2090. @ref-see-also See also in %s.
  2091. @{{{  @main-menu-mode View
  2092. Toggle the view mode.
  2093.  
  2094. @{{{  easy modes
  2095. @}}}
  2096. @}}}
  2097. @{{{  @main-menu-mode Extend
  2098. Toggle the extended mode.
  2099.  
  2100. @{{{  mode-extended
  2101. @}}}
  2102. @}}}
  2103. @{{{  @main-menu-mode Autosave
  2104. Toggle auto-save mode.
  2105.  
  2106. @{{{  mode-autosave
  2107. @}}}
  2108. @}}}
  2109. @{{{  @main-menu-mode Write-over
  2110. Toggle overwrite mode.
  2111.  
  2112. @{{{  easy modes
  2113. @}}}
  2114. @}}}
  2115. @{{{  @main-menu-mode Position
  2116. Toggle the position display in the statusline.
  2117.  
  2118. @{{{  easy modes
  2119. @}}}
  2120. @}}}
  2121. @ref-end-item
  2122.  
  2123. @{{{  Select an Menu Item
  2124. @}}}
  2125. @}}}
  2126. @{{{  @main-menu Window
  2127. Activate the buffer handling menu. Displays `BufferCmd' in the statusline. You
  2128. can choose:
  2129.  
  2130. @ref-start-item Ok-BUFFERNUMBER Size Change New Quit
  2131. @{{{  @main-menu-window Ok-BUFFERNUMBER
  2132. Leave the menu.
  2133. @}}}
  2134. @{{{  @main-menu-window Size
  2135. Show a menu for changing the size of the current buffer window. displays
  2136. `BufferSize' in the statusline. You can choose:
  2137.  
  2138. @ref-start-item Ok-BUFFERNUMBER[LINESxCOLUMNS] Grow Shrink Widen Narrow
  2139. @{{{  @main-menu-window-size Ok-BUFFERNUMBER[LINESxCOLUMNS]
  2140. Return to buffer handling menu.
  2141. @}}}
  2142. @{{{  @main-menu-window-size Grow
  2143. Increases the height of the window. Stay in the size menu.
  2144. @}}}
  2145. @{{{  @main-menu-window-size Shrink
  2146. Decrease the height of the window. Stay in the size menu.
  2147. @}}}
  2148. @{{{  @main-menu-window-size Widen
  2149. Increase the width of the window. Stay in the size menu.
  2150. @}}}
  2151. @{{{  @main-menu-window-size Narrow
  2152. Decrease the width of the window. Stay in the size menu.
  2153. @}}}
  2154. @ref-end-item
  2155.  
  2156. @{{{  Select an Menu Item
  2157. @}}}
  2158. @}}}
  2159. @{{{  @main-menu-window Change
  2160. Show a menu for changing the active buffer. Displays `BufferChg' in the
  2161. statusline. You can choose:
  2162.  
  2163. @ref-start-item Ok-BUFFERNUMBER Up Down Left Right Previous Next Select
  2164. @{{{  @main-menu-window-sub Ok-BUFFERNUMBER
  2165. Return to buffer handling menu.
  2166. @}}}
  2167. @{{{  @main-menu-window-change Up
  2168. Change to the buffer above the active one. Stay in buffer change menu.
  2169. @}}}
  2170. @{{{  @main-menu-window-change Down
  2171. Change to the buffer under the active one. Stay in buffer change menu.
  2172. @}}}
  2173. @{{{  @main-menu-window-change Left
  2174. Change to the buffer to the left of the active one. Stay in buffer change menu.
  2175. @}}}
  2176. @{{{  @main-menu-window-change Right
  2177. Change to the buffer to the right of the active one. Stay in buffer change
  2178. menu.
  2179. @}}}
  2180. @{{{  @main-menu-window-change Previous
  2181. Switch to the buffer with id n-1, n is the id of the current buffer. Stay in
  2182. the buffer change menu.
  2183. @}}}
  2184. @{{{  @main-menu-window-change Next
  2185. Switch to the buffer with id n+1, n is the id of the current buffer. Stay in
  2186. the buffer change menu.
  2187. @}}}
  2188. @{{{  @main-menu-window-change Select
  2189. Show a list of all buffers for selecting the next buffer. Returns to buffer
  2190. handling menu afterwards.
  2191. @}}}
  2192. @ref-end-item
  2193.  
  2194. @{{{  Select an Menu Item
  2195. @}}}
  2196. @}}}
  2197. @{{{  @main-menu-window New
  2198. Show a menu for creating new buffers. Displays `BufferNew' in the statusline.
  2199. You can choose:
  2200.  
  2201. @ref-start-item Ok-BUFFERNUMBER Buffer Adjacent-buffer
  2202. @ref-see-also C-> %s.
  2203. @{{{  @main-menu-window-sub Ok-BUFFERNUMBER
  2204. @}}}
  2205. @ref-see-also See also in %s.
  2206. @{{{  @main-menu-window-new Buffer
  2207. Prompt for a filename and open a new buffer.
  2208.  
  2209. @{{{  open-buffer
  2210. @}}}
  2211. @}}}
  2212. @{{{  @main-menu-window-new Adjacent-buffer
  2213. Prompt for a filename and open a new buffer.
  2214.  
  2215. @{{{  open-adjacent-buffer
  2216. @}}}
  2217. @}}}
  2218. @ref-end-item
  2219.  
  2220. @{{{  Select an Menu Item
  2221. @}}}
  2222. @}}}
  2223. @{{{  @main-menu-window Quit
  2224. If there are more than 1 buffer, leave the active one and stay in buffer
  2225. handling menu. Otherwise return to Edit-Mode.
  2226.  
  2227. @{{{  exit-buffer
  2228. @}}}
  2229. @}}}
  2230. @ref-end-item
  2231.  
  2232. @{{{  Select an Menu Item
  2233. @}}}
  2234. @}}}
  2235. @{{{  @main-menu Exit
  2236. Prompt for permission and ends the editing session if permitted.
  2237.  
  2238. @{{{  @exit-origami Restrictions in shell mode
  2239. @}}}
  2240. @}}}
  2241. @ref-end-item
  2242.  
  2243. @{{{  Select an Menu Item
  2244. @}}}
  2245. @ref-end-item
  2246. @}}}
  2247. @}}}
  2248. @{{{  Move-Mode
  2249. The following commands can be used in Move-Mode. Moving around is like in
  2250. Edit-Mode. The edit-functions use the marked region instead of the current
  2251. line. The region is set by:
  2252.  
  2253. @ref-start-item *
  2254. the entry-point to Move-Mode
  2255. @ref-end-item
  2256. @ref-start-item *
  2257. the position, where the command is called
  2258. @ref-end-item
  2259.  
  2260. You can return to Edit-Mode by pressing the abort-key or a region-command. The
  2261. bindings are very close to the bindings in Edit-Mode, though they are much more
  2262. powerfull.
  2263.  
  2264. @{{{  @move Moving Around
  2265. @{{{  @move backward/upward
  2266. @ref-see-also C-> %s.
  2267. @{{{  backward-character
  2268. @}}}
  2269. @{{{  backward-word
  2270. @}}}
  2271. @{{{  beginning-of-line
  2272. @}}}
  2273. @{{{  previous-line
  2274. @}}}
  2275. @{{{  previous-page
  2276. @}}}
  2277. @{{{  mtool-top
  2278. @}}}
  2279. @{{{  beginning-of-fold
  2280. @}}}
  2281. @ref-see-also See also in %s.
  2282. @}}}
  2283. @{{{  @move forward/downward
  2284. @ref-see-also C-> %s.
  2285. @{{{  forward-character
  2286. @}}}
  2287. @{{{  forward-word
  2288. @}}}
  2289. @{{{  end-of-line
  2290. @}}}
  2291. @{{{  next-line
  2292. @}}}
  2293. @{{{  next-page
  2294. @}}}
  2295. @{{{  mtool-bot
  2296. @}}}
  2297. @{{{  end-of-fold
  2298. @}}}
  2299. @ref-see-also See also in %s.
  2300. @}}}
  2301. @{{{  @move go-local-line
  2302. @ref-start-item esc g o  |  C-Q g  |  R13/Meta-g  |  f2 g
  2303. Same as go-line in Edit-Mode, except that it opens only folds and does not
  2304. close any folds.
  2305. @ref-end-item
  2306. @}}}
  2307. @{{{  @move searching
  2308. @ref-see-also C-> %s.
  2309. @{{{  goto-matching-brace
  2310. @}}}
  2311. @{{{  search-forward
  2312. @}}}
  2313. @{{{  search-reverse
  2314. @}}}
  2315. @{{{  incremental-search-forward
  2316. @}}}
  2317. @ref-see-also See also in %s.
  2318. @}}}
  2319. @{{{  @move marks
  2320. @ref-see-also C-> %s.
  2321. @{{{  set-mark-x
  2322. @}}}
  2323. @ref-see-also See also in %s.
  2324. @{{{  @move go-mark-x
  2325. @ref-start-item esc g x (x=0,1,..,9)
  2326. Goto mark x. The command fails, if the mark is in another file.
  2327. @ref-end-item
  2328. @}}}
  2329. @{{{  @move swap-mark-x
  2330. @ref-start-item esc w x (x=0,1,..,9)
  2331. Like in Edit-Mode, but cannot change files.
  2332. @ref-end-item
  2333. @}}}
  2334. @{{{  @move go-last-mark
  2335. @ref-start-item esc g m
  2336. Go to the mark, used in the last go-mark-x command. The command
  2337. fails, if the mark is in another file.
  2338. @ref-end-item
  2339. @}}}
  2340. @{{{  @move go-start-mark
  2341. @ref-start-item esc esc  |  R13/Meta-R13  |  f2
  2342. Move the cursor back to the start of the region.
  2343.  
  2344. @{{{  general layout of the keypad
  2345. @}}}
  2346. @ref-end-item
  2347. @}}}
  2348. @{{{  @move set-start-mark
  2349. @ref-start-item .
  2350. The current position is used as beginning of the region.
  2351. @ref-end-item
  2352. @}}}
  2353. @}}}
  2354. @{{{  @move change-position
  2355. @ref-start-item -
  2356. The current position becomes start of the region and the cursor is moved to the
  2357. old start-position.
  2358. @ref-end-item
  2359. @}}}
  2360. @}}}
  2361. @{{{  @move Editing
  2362. @{{{  @move delete-mark-region
  2363. @ref-start-item esc d l  |  C-L  |  R13/Meta-R9  |  delline
  2364. The marked region will be deleted from the text.
  2365.  
  2366. @{{{  Buffers
  2367. @}}}
  2368. @{{{  general layout of the keypad
  2369. @}}}
  2370. @ref-end-item
  2371. @}}}
  2372. @{{{  @move undo-delete-line-unfolded-at
  2373. @ref-start-item esc u l  |  C-Q C-L  |  R13/Meta-R7  |  L4
  2374. Try to undelete a line at cursor position inside a line.
  2375.  
  2376. @{{{  Buffers
  2377. @}}}
  2378. @{{{  general layout of the keypad
  2379. @}}}
  2380. @ref-end-item
  2381. @}}}
  2382. @{{{  @move copy-mark-region
  2383. @ref-start-item esc c o  |  C-O  |  R13/Meta-R2  |  copy
  2384. The marked region will be copied in the text.
  2385.  
  2386. @{{{  general layout of the keypad
  2387. @}}}
  2388. @ref-end-item
  2389. @}}}
  2390.  
  2391. @{{{  @move Edit Buffers
  2392. @{{{  @move kill-mark-region
  2393. @ref-start-item esc p i  |  C-K  |  R2  |  L10
  2394. The region is moved to the end of the kill-buffer.
  2395.  
  2396. @{{{  Buffers
  2397. @}}}
  2398. @{{{  general layout of the keypad
  2399. @}}}
  2400. @ref-end-item
  2401. @}}}
  2402. @{{{  @move copy-kill-mark-region
  2403. @ref-start-item esc c p  |  C-Q C-K  |  R5  |  L6
  2404. The region will be copied to the end of the kill-buffer.
  2405.  
  2406. @{{{  Buffers
  2407. @}}}
  2408. @{{{  general layout of the keypad
  2409. @}}}
  2410. @ref-end-item
  2411. @}}}
  2412. @{{{  @move unkill-unfolded-at
  2413. @ref-start-item esc p p  |  C-P  |  R11  |  L8
  2414. If needed, split the current line and insert the contents of the kill-buffer
  2415. into the text.
  2416.  
  2417. @{{{  Buffers
  2418. @}}}
  2419. @{{{  general layout of the keypad
  2420. @}}}
  2421. @ref-end-item
  2422. @}}}
  2423. @{{{  @move move-mark-region
  2424. @ref-start-item esc m o  |  C-Q C-O  |  R13/Meta-R2  |  move
  2425. If the move-buffer is empty, fold the marked region and move the new fold into
  2426. the move-buffer. Otherwise the move-buffer is moved into the text at current
  2427. position.
  2428.  
  2429. @{{{  Buffers
  2430. @}}}
  2431. @{{{  general layout of the keypad
  2432. @}}}
  2433. @ref-end-item
  2434. @}}}
  2435. @}}}
  2436.  
  2437. @{{{  @move shift-?-region
  2438. The following commands change the indentation of all selected lines. The
  2439. commands do not return to Edit-Mode, but stay in a loop,where only the
  2440. shift-???-region commands and switch-to-edit-mode (press i or return) are valid
  2441. commands. Mouse-clicks inside the current window call shift-to-region with the
  2442. corresponding x position. Clicking on the message-line returns to Edit-Mode.
  2443.  
  2444. @ref-start-item shift-in-region: space
  2445. Increment indentation level by 1.
  2446. @ref-end-item
  2447. @ref-start-item shift-out-region: esc b s  |  esc d c  |  backspace
  2448. Decrement indentation level by 1.
  2449. @ref-end-item
  2450. @ref-start-item shift-x-region: +
  2451. Prompts for the number of additional spaces (negativ values decrease the
  2452. indentation level.
  2453. @ref-end-item
  2454. @ref-start-item shift-to-region: t
  2455. Prompt for the indentation level.
  2456. @ref-end-item
  2457. @}}}
  2458. @{{{  @move character cases
  2459. @ref-start-item toggle-case-mark-region: !
  2460. Toggle the case of all characters in the selected region.
  2461. @ref-end-item
  2462. @ref-start-item uppercase-mark-region: u
  2463. Make all letters in the selected region uppercase.
  2464. @ref-end-item
  2465. @ref-start-item lowercase-mark-region: v
  2466. Make all letters in the selected region lowercase.
  2467. @ref-end-item
  2468. @}}}
  2469. @}}}
  2470. @{{{  @move Folding
  2471. @ref-see-also C-> %s.
  2472. @{{{  open-fold
  2473. @}}}
  2474. @{{{  close-fold
  2475. @}}}
  2476. @ref-see-also See also in %s.
  2477. @{{{  @move fold-mark-region
  2478. @ref-start-item f  |  esc c r  |  C-\  |  R15
  2479. The region will be folded. If needed, the start- and endline are broken.
  2480.  
  2481. @{{{  general layout of the keypad
  2482. @}}}
  2483. @ref-end-item
  2484. @}}}
  2485. @}}}
  2486. @{{{  @move Helps and Exits
  2487. @ref-see-also C-> %s.
  2488. @{{{  describe-fold
  2489. @}}}
  2490. @{{{  help
  2491. @}}}
  2492. @{{{  describe-bindings
  2493. @}}}
  2494. @ref-see-also See also in %s.
  2495. @}}}
  2496. @{{{  set-argument-y
  2497. @ref-start-item esc y  |  R13/Meta-y  (y=0..9)
  2498. All number inputs will be appended to y and the following command will be
  2499. repeated according to y.
  2500. @ref-end-item
  2501. @}}}
  2502. @{{{  move-menu
  2503. @ref-start-item esc m m  |  f1
  2504. Pressing f1 twice will display the binding-list.
  2505.  
  2506. Offers the menu:
  2507.  
  2508. @ref-start-item Ok Bindings Help Fold Indent Edit
  2509. @{{{  Ok
  2510. Leave the menu without any action.
  2511. @}}}
  2512. @{{{  Bindings
  2513. Show the list of bound keys.
  2514.  
  2515. @{{{  describe-bindings
  2516. @}}}
  2517. @}}}
  2518. @{{{  Help
  2519. Show the help file.
  2520.  
  2521. @{{{  help
  2522. @}}}
  2523. @}}}
  2524. @{{{  Fold
  2525. Fold the selected region and return to Edit-Mode.
  2526.  
  2527. @{{{  @move fold-mark-region
  2528. @}}}
  2529. @}}}
  2530. @{{{  Indent
  2531. Start indenting the selected region. Selecting this item will not change the
  2532. text, but you can use the mouse to determine the new position of the block.
  2533. Keyboard controlled indenting is also allowed.
  2534.  
  2535. Clicking on the status- or message-line will leave the indenting mode.
  2536. @{{{  @move shift-?-region
  2537. @}}}
  2538. @}}}
  2539. @{{{  Edit
  2540. Return to Edit-Mode.
  2541. @}}}
  2542. @ref-end-item
  2543.  
  2544. @{{{  Select an Menu Item
  2545. @}}}
  2546. @ref-end-item
  2547. @}}}
  2548. @}}}
  2549. @{{{  Buffer-Handling-Mode
  2550. This mode is marked with `BufferCmd' in the statusline. It is used to control
  2551. multiple buffers during a editor session. Available commands are:
  2552.  
  2553. @{{{  buffer-menu
  2554. @ref-start-item m
  2555. Call the window handling menu and return to Edit-Mode, after leaving it.
  2556.  
  2557. @{{{  @main-menu Window
  2558. @}}}
  2559. @ref-end-item
  2560. @}}}
  2561. @{{{  switch-off-buffer-handling
  2562. @ref-start-item return
  2563. Return to Edit-Mode.
  2564. @ref-end-item
  2565. @}}}
  2566. @{{{  open new buffers
  2567. @{{{  @buff open-buffer
  2568. @ref-start-item o
  2569. Like in Edit-Mode.
  2570. @ref-end-item
  2571. @}}}
  2572. @{{{  @buff open-list-buffer
  2573. @ref-start-item O
  2574. Like in Edit-Mode.
  2575. @ref-end-item
  2576. @}}}
  2577. @{{{  @buff open-adjacent-buffer
  2578. @ref-start-item a
  2579. Like in Edit-Mode.
  2580. @ref-end-item
  2581. @}}}
  2582. @{{{  @buff open-list-adjacent-buffer
  2583. @ref-start-item A
  2584. Like in Edit-Mode.
  2585. @ref-end-item
  2586. @}}}
  2587. @}}}
  2588. @{{{  change current buffer
  2589. @{{{  @buff next-buffer
  2590. @ref-start-item n
  2591. Like in Edit-Mode.
  2592. @ref-end-item
  2593. @}}}
  2594. @{{{  @buff previous-buffer
  2595. @ref-start-item p
  2596. Like in Edit-Mode.
  2597. @ref-end-item
  2598. @}}}
  2599. @{{{  go-buffer
  2600. @ref-start-item g
  2601. Prompt for a buffer number and switch to it. If set-argument was used, the
  2602. prompt will be omitted and the argument will be used!
  2603. @ref-end-item
  2604. @}}}
  2605. @{{{  right-buffer
  2606. @ref-start-item D  |  R12  |  right
  2607. Go to buffer right from cursor position.
  2608.  
  2609. @{{{  general layout of the keypad
  2610. @}}}
  2611. @ref-end-item
  2612. @}}}
  2613. @{{{  left-buffer
  2614. @ref-start-item S  |  R10  |  left
  2615. Go to buffer left from cursor position.
  2616.  
  2617. @{{{  general layout of the keypad
  2618. @}}}
  2619. @ref-end-item
  2620. @}}}
  2621. @{{{  up-buffer
  2622. @ref-start-item E  |  R8  |  up
  2623. Go to buffer above cursor position.
  2624.  
  2625. @{{{  general layout of the keypad
  2626. @}}}
  2627. @ref-end-item
  2628. @}}}
  2629. @{{{  down-buffer
  2630. @ref-start-item X  |  R14  |  down
  2631. Go to buffer under cursor position.
  2632.  
  2633. @{{{  general layout of the keypad
  2634. @}}}
  2635. @ref-end-item
  2636. @}}}
  2637. @}}}
  2638. @{{{  change layout
  2639. @{{{  full-size-buffer
  2640. @ref-start-item f
  2641. Make buffer as big as possible.
  2642. @ref-end-item
  2643. @}}}
  2644.  
  2645. The following commands, can be repeated by typing the number of repeats before
  2646. typing the command.
  2647.  
  2648. @{{{  widen-buffer
  2649. @ref-start-item d  |  R12  |  right
  2650. Increment the width off current window by 1.
  2651.  
  2652. @{{{  general layout of the keypad
  2653. @}}}
  2654. @ref-end-item
  2655. @}}}
  2656. @{{{  narrow-buffer
  2657. @ref-start-item s  |  R10  |  left
  2658. Decrement the width of the current window by 1.
  2659.  
  2660. @{{{  general layout of the keypad
  2661. @}}}
  2662. @ref-end-item
  2663. @}}}
  2664. @{{{  grow-buffer
  2665. @ref-start-item e  |  R8  |  up
  2666. Increase the height of the current window by 1.
  2667.  
  2668. @{{{  general layout of the keypad
  2669. @}}}
  2670. @ref-end-item
  2671. @}}}
  2672. @{{{  shrink-buffer
  2673. @ref-start-item x  |  R14  |  down
  2674. Decrement the height of the current window by 1.
  2675.  
  2676. @{{{  general layout of the keypad
  2677. @}}}
  2678. @ref-end-item
  2679. @}}}
  2680. @}}}
  2681. @{{{  @buff exit-buffer
  2682. @ref-start-item q  |  exit  |  f10
  2683. Like in Edit-Mode, but returns to Edit-Mode, if only one buffer is left!
  2684. @ref-end-item
  2685. @}}}
  2686. @{{{  @buff describe-bindings
  2687. @ref-start-item ?
  2688. like in Edit-Mode, but show commands for Buffer-Handling-Mode.
  2689. @ref-end-item
  2690. @}}}
  2691. @{{{  @buff help
  2692. @ref-start-item h
  2693. like in Edit-Mode.
  2694. @ref-end-item
  2695. @}}}
  2696. @{{{  @buff center-and-redraw-display
  2697. @ref-start-item r  |  R13/Meta-R13  |  refresh  |  f2 f2
  2698. Center and redraw screen.
  2699.  
  2700. @{{{  general layout of the keypad
  2701. @}}}
  2702. @ref-end-item
  2703. @}}}
  2704.  
  2705. Mouse clicks switch to the given window. Clicks on message-line activate the
  2706. buffer handling menu.
  2707. @}}}
  2708. @if-using ( SHELL-MODE )
  2709. @{{{  @shell-mode Shell Mode
  2710. ModeOri starts in shell mode, if Option -Oshell is active. If the given file
  2711. argument is a regular file, ModeOri activates automatically the command edit
  2712. for the given file.
  2713.  
  2714. The mode displays a special window below the text, which is used to display
  2715. some of the most important available commands. The text window is used to
  2716. display the files in the active directory. Selected files/directories are
  2717. marked with *. You can choose:
  2718.  
  2719. @{{{  @shell-mode Moving Around
  2720. @{{{  @shell-mode previous-line
  2721. @ref-start-item esc u p  |  C-E  |  R8  |  up
  2722. Go to the previous line on the screen.
  2723.  
  2724. @{{{  general layout of the keypad
  2725. @}}}
  2726. @ref-end-item
  2727. @}}}
  2728. @{{{  @shell-mode previous-page
  2729. @ref-start-item esc p u  |  esc l e  |  C-S  |  R13/Meta-R1  |  R10  |  prev_page  |  left
  2730. Move one screen up.
  2731.  
  2732. @{{{  general layout of the keypad
  2733. @}}}
  2734. @ref-end-item
  2735. @}}}
  2736. @{{{  mtool-top
  2737. @}}}
  2738. @{{{  @shell-mode next-line
  2739. @ref-start-item esc d n  |  C-X  |  R14  |  down
  2740. Go to the next line on the screen.
  2741.  
  2742. @{{{  general layout of the keypad
  2743. @}}}
  2744. @ref-end-item
  2745. @}}}
  2746. @{{{  @shell-mode next-page
  2747. @ref-start-item esc p d  |  esc r i  |  C-D  |  R13/Meta-R3  |  R12  |  next_page  |  right
  2748. Move one page down.
  2749.  
  2750. @{{{  general layout of the keypad
  2751. @}}}
  2752. @ref-end-item
  2753. @}}}
  2754. @{{{  mtool-bot
  2755. @}}}
  2756. @}}}
  2757. @{{{  @shell-mode Folding
  2758. @{{{  @shell-mode open-fold
  2759. @ref-start-item esc o p  |  C-W  |  R4  |  f3
  2760. Open the closed fold under the cursor. Can be used to show the dot files.
  2761.  
  2762. @{{{  general layout of the keypad
  2763. @}}}
  2764. @ref-end-item
  2765. @}}}
  2766. @{{{  @shell-mode close-fold
  2767. @ref-start-item esc c l  |  C-R  |  R6  |  f4
  2768. Close the currently opened fold. Can be used to hide the dot files.
  2769.  
  2770. @{{{  general layout of the keypad
  2771. @}}}
  2772. @ref-end-item
  2773. @}}}
  2774. @}}}
  2775. @{{{  @shell-mode Helps and Exits
  2776. @{{{  describe-bindings
  2777. @}}}
  2778. @if-using not( NO-HELP-BROWSER )
  2779. @{{{  @shell-mode info
  2780. @ref-start-item esc i f  |  esc h e  |  i  |  C-Q h  |  R13/Meta-h  |  f1  |  f2 h
  2781. Like in Edit-Mode, start the interactive ModeOri information display.
  2782.  
  2783. @{{{  info
  2784. @}}}
  2785. @ref-end-item
  2786. @}}}
  2787. @fi
  2788.  
  2789. @{{{  @shell-mode quit-shell
  2790. @ref-start-item  q  |  Q  |  esc q u  |  C-Q  |  R13/Meta-q  |  f10  |  exit
  2791. Leave ModeOriShell.
  2792. @ref-end-item
  2793. @}}}
  2794. @}}}
  2795. @{{{  @shell-mode Selections
  2796. @{{{  @shell-mode action-select
  2797. @ref-start-item return  |  esc e n  |  C-Q C-W  |  R13/Meta-R4  |  f2 f3
  2798. Open the closed fold under the cursor. Can be used to show the dot files.
  2799.  
  2800. Depending on the cursor position, the following actions are started:
  2801.  
  2802. @ref-start-itemclosed fold
  2803. open fold and move down one line
  2804. @ref-end-item
  2805. @ref-start-item directory
  2806. change the directory
  2807. @ref-end-item
  2808. @ref-start-item file
  2809. switch to editing for this file
  2810. @ref-end-item
  2811.  
  2812. @{{{  @shell-mode edit command
  2813. @}}}
  2814. @{{{  general layout of the keypad
  2815. @}}}
  2816. @ref-end-item
  2817. @}}}
  2818. @{{{  @shell-mode change-directory
  2819. @ref-start-item  d  |  D  |  f9
  2820. Change the displayed directory. If no selection is made, ModeOriShell prompts
  2821. for a directory, otherwise the first of the selected files is used.
  2822. @ref-end-item
  2823. @}}}
  2824. @{{{  @shell-mode edit
  2825. @ref-start-item  e  |  E
  2826. Switch to editing for the first of the selected files. ModeOriShell prompts for
  2827. a filename, if no selections are made and uses /dev/null on empty input.
  2828.  
  2829. @{{{  @shell-mode edit command
  2830. @}}}
  2831. @ref-end-item
  2832. @}}}
  2833. @{{{  @shell-mode toggle-select
  2834. @ref-start-item s  |  S  |  space
  2835. Change the selection status of the file under the cursor and moves the cursor
  2836. one line down.
  2837. @ref-end-item
  2838. @}}}
  2839. @{{{  @shell-mode browser
  2840. @ref-start-item b  |  B
  2841. Start the information browser for the first of the selected files. If no
  2842. selections are done, use ~/.oriinfo instead. The number of entered nodes is
  2843. shown in the statusline (Sublevel:no).
  2844.  
  2845. @{{{  @shell-mode-browser Moving Around
  2846. @{{{  @shell-mode-browser previous-line
  2847. @ref-start-item esc u p  |  C-E  |  R8  |  up
  2848. Go to the previous line on the screen.
  2849.  
  2850. @{{{  general layout of the keypad
  2851. @}}}
  2852. @ref-end-item
  2853. @}}}
  2854. @{{{  @shell-mode-browser previous-page
  2855. @ref-start-item  esc p u  |  esc l e  |  C-S  |  R10  |  R13/Meta-R1  |  prev_page  |  left
  2856. Move one screen up.
  2857.  
  2858. @{{{  general layout of the keypad
  2859. @}}}
  2860. @ref-end-item
  2861. @}}}
  2862. @{{{  @shell-mode-browser next-line
  2863. @ref-start-item esc d n  |  C-X  |  R14  |  down
  2864. Go to the next line on the screen.
  2865.  
  2866. @{{{  general layout of the keypad
  2867. @}}}
  2868. @ref-end-item
  2869. @}}}
  2870. @{{{  @shell-mode-browser next-page
  2871. @ref-start-item esc p d  |  esc r i  |  space  |  C-D  |  R12  |  R13/Meta-R3  |  next_page  |  right
  2872. Move one screen down.
  2873.  
  2874. @{{{  general layout of the keypad
  2875. @}}}
  2876. @ref-end-item
  2877. @}}}
  2878. @}}}
  2879. @{{{  @shell-mode-browser Folding
  2880. @{{{  @shell-mode-browser info-enter
  2881. @ref-start-item return  |  esc o p  |  C-W  |  R4  |  f3
  2882. Enter the node on the current line.
  2883.  
  2884. @{{{  general layout of the keypad
  2885. @}}}
  2886. @ref-end-item
  2887. @}}}
  2888. @{{{  @shell-mode-browser info-exit
  2889. @ref-start-item esc o p  |  esc b s  |  esc d c  |  C-G  |  C-R  |  backspace  |  delete  |  R4  |  f3
  2890. Leave the current node.
  2891.  
  2892. @{{{  general layout of the keypad
  2893. @}}}
  2894. @ref-end-item
  2895. @}}}
  2896. @}}}
  2897. @{{{  @shell-mode-browser center-and-redraw-display
  2898. @ref-start-item esc r f  |  C-Q C-Q  |  R13/Meta-R13  |  refresh  |  left
  2899. Redraw screen.
  2900.  
  2901. @{{{  general layout of the keypad
  2902. @}}}
  2903. @ref-end-item
  2904. @}}}
  2905. @{{{  @shell-mode-browser Helps
  2906. @{{{  describe-bindings
  2907. @}}}
  2908. @if-using not( NO-HELP-BROWSER )
  2909. @{{{  @shell-mode info
  2910. @}}}
  2911. @fi
  2912. @}}}
  2913. @{{{  @shell-mode-browser quit-browser
  2914. @ref-start-item q  |  Q  |  esc q u  |  C-Q  |  R13/Meta-q  |  f10  |  exit
  2915. Leave ModeOriShell browser and return to ModeOriShell.
  2916. @ref-end-item
  2917. @}}}
  2918. @ref-end-item
  2919. @}}}
  2920. @{{{  @shell-mode file-menu
  2921. @ref-start-item f  |  F
  2922. Show a menu for file handling. Available functions are:
  2923.  
  2924. @{{{  @shell-mode Moving Around
  2925. @}}}
  2926. @{{{  @shell-mode Folding
  2927. @}}}
  2928. @{{{  @shell-mode toggle-select
  2929. @}}}
  2930. @{{{  @shell-mode-file Helps
  2931. @{{{  describe-bindings
  2932. @}}}
  2933. @if-using not( NO-HELP-BROWSER )
  2934. @{{{  @shell-mode info
  2935. @}}}
  2936. @fi
  2937. @}}}
  2938. @{{{  @shell-mode-browser center-and-redraw-display
  2939. @}}}
  2940. @{{{  @shell-mode-file copy-file
  2941. @ref-start-item c  |  C
  2942. Prompt for a destination file/directory and copies all selected files to this.
  2943. If there are no selections, ModeOriShell prompts for a source file first.
  2944. Directories cannot be copied.
  2945.  
  2946. @{{{  ~ expansion
  2947. A leading ~ will be handled:
  2948.  
  2949. @ref-start-item  ~/file
  2950. is replaced by $HOME/file
  2951. @ref-end-item
  2952. @ref-start-item
  2953. ~user/file is not changed, it depends on your shell, if this will be expanded!
  2954. @ref-end-item
  2955. @}}}
  2956. @ref-end-item
  2957. @}}}
  2958. @{{{  @shell-mode-file move-file
  2959. @ref-start-item m  |  M
  2960. Prompt for a destination file/directory and moves all selected files to this.
  2961. If there are no selections, ModeOriShell prompts for a source file first.
  2962.  
  2963. @{{{  ~ expansion
  2964. @}}}
  2965. @ref-end-item
  2966. @}}}
  2967. @{{{  @shell-mode-file remove-file
  2968. @ref-start-item r  |  R
  2969. Removes all selected files, prompting for permission for each file. If there
  2970. are no selections, ModeOriShell prompts for a filename. Directories can not be
  2971. removed.
  2972.  
  2973. @{{{  ~ expansion
  2974. @}}}
  2975. @ref-end-item
  2976. @}}}
  2977. @{{{  @shell-mode quit-file-menu
  2978. @ref-start-item q  |  Q  |  esc q u  |  C-Q  |  R13/Meta-q  |  f10  |  exit
  2979. Leave ModeOriShell file handling and return to ModeOriShell.
  2980. @ref-end-item
  2981. @}}}
  2982. @ref-end-item
  2983. @}}}
  2984. @{{{  @shell-mode make
  2985. @ref-start-item m  |  M
  2986. Call make in the currently handled directory.
  2987.  
  2988. @{{{  make command
  2989. @}}}
  2990. @ref-end-item
  2991. @}}}
  2992. @{{{  @shell-mode mail
  2993. @ref-start-item p  |  P
  2994. Call your mail command in the currently handled directory.
  2995.  
  2996. @{{{  mail command
  2997. @}}}
  2998. @ref-end-item
  2999. @}}}
  3000. @{{{  @shell-mode nn
  3001. @ref-start-item n  |  N
  3002. Call your news reader in the currently handled directory.
  3003.  
  3004. @{{{  @shell-mode nn command
  3005. @}}}
  3006. @ref-end-item
  3007. @}}}
  3008.  
  3009. @{{{  @shell-mode change-commands
  3010. @ref-start-item esc m m
  3011. Call the command menu from main menu.
  3012.  
  3013. @{{{  @main-menu-para CommandParameter
  3014. @}}}
  3015. @ref-end-item
  3016. @}}}
  3017. @}}}
  3018. @{{{  @shell-mode refresh-directory
  3019. @ref-start-item esc r f  |  C-Q C-Q  |  R13/Meta-R13  |  f7  |  f8  |  refresh  |  left
  3020. Redraw screen and read directory data again.
  3021.  
  3022. @{{{  general layout of the keypad
  3023. @}}}
  3024. @ref-end-item
  3025. @}}}
  3026. @{{{  @shell-mode toggle-expert-mode
  3027. @ref-start-item x
  3028. Switch on/off the display of the help window below the directory view. Modes
  3029. are displayed in the statusline, if the window is switched off.
  3030.  
  3031. @{{{  using -O
  3032. @}}}
  3033. @ref-end-item
  3034. @}}}
  3035. @}}}
  3036. @fi
  3037. @if-using ( GAMES )
  3038. @{{{  Funny functions
  3039. @{{{  Towers of Hanoi
  3040. @{{{  tower-display
  3041. @ref-start-item esc t o 1
  3042. Play the game at the bottom of the current buffer. Use set-argument, to get
  3043. another height than the default 5.
  3044. @ref-end-item
  3045. @}}}
  3046. @{{{  towers-of-hanoi
  3047. @ref-start-item esc t o 2
  3048. Play the game with the string of the current line. This may not contain spaces
  3049. or tabs!
  3050. @ref-end-item
  3051. @}}}
  3052. @}}}
  3053. @{{{  Sokoban
  3054. @ref-start-item esc s o
  3055. Play the game!
  3056.  
  3057. @{{{  @sokoban-ref sokoban
  3058. @}}}
  3059.  
  3060. In addition to the default vi based control, normal cursor movement is also
  3061. supported! Use describe bindings for detailed information.
  3062. @ref-end-item
  3063. @}}}
  3064. @}}}
  3065. @fi
  3066. @if-using ( SUNEDT linuxEDT )
  3067.  
  3068. @{{{  EDT Special keypad usage
  3069. @if-using ( SUNEDT )
  3070. If the environement variable ORIGAMITERM is set to SUNEDT, the sun keypad keys
  3071. R1,.. are used and named in a different way.
  3072. @fi
  3073. @if-using ( linuxEDT )
  3074. If the environement variable ORIGAMITERM is set to con80x25EDT, the keypad keys
  3075. are used and named in a different way.
  3076. @fi
  3077.  
  3078. @{{{  @EDT keypad mapping
  3079. @ref-start-tbl R-Key 5 EDT-Key 8 @@ R-Key 5 EDT-Key 8
  3080. R1 @@ DelLine @@ R9 @@ Append
  3081. R2 @@ DelWord @@ R10 @@ Advance
  3082. R3 @@ DelChar @@ R11 @@ Backup
  3083. R4 @@ Gold @@ R12 @@ Cut
  3084. R5 @@ Help @@ R13 @@ Word
  3085. R6 @@ Find @@ R14 @@ EOL
  3086. R7 @@ Page @@ R15 @@ Char
  3087. R8 @@ Section
  3088. @ref-end-tbl
  3089.  
  3090. The additional keys on the sun keyboard `Ins' and `.' (sending `esc [ 2 2 3 z')
  3091. are used as SOL and Select.
  3092.  
  3093. @{{{  cursor keypad
  3094. @}}}
  3095. @}}}
  3096. @{{{  @EDT Edit-Mode
  3097. @{{{  @EDT Moving Around
  3098. @{{{  @EDT backward/upward
  3099. @{{{  @EDT set-direction-backward
  3100. @ref-start-item Backup
  3101. Switch current move direction to backward. This is marked with <- in the
  3102. statusline.
  3103. @ref-end-item
  3104. @}}}
  3105. @{{{  @EDT page-begin
  3106. @ref-start-item Page
  3107. Move the cursor to the top of the current window.
  3108. @ref-end-item
  3109. @}}}
  3110. @{{{  @EDT beginning-of-line
  3111. @ref-start-item SOL
  3112. @{{{  beginning-of-line
  3113. @}}}
  3114. @ref-end-item
  3115. @}}}
  3116. @{{{  @EDT beginning-of-fold
  3117. @ref-start-item Gold t o p  |  Gold Backup
  3118. @{{{  beginning-of-fold
  3119. @}}}
  3120. @ref-end-item
  3121. @}}}
  3122. @}}}
  3123. @{{{  @EDT forward/downward
  3124. @{{{  @EDT set-direction-forward
  3125. @ref-start-item Advance
  3126. Switch current move direction to forward.
  3127. @ref-end-item
  3128. @}}}
  3129. @{{{  @EDT end-of-line
  3130. @ref-start-item EOL
  3131. @{{{  end-of-line
  3132. @}}}
  3133. @ref-end-item
  3134. @}}}
  3135. @{{{  @EDT end-of-fold
  3136. @ref-start-item  Gold b o t t o m  |  Gold Advance
  3137. @{{{  end-of-fold
  3138. @}}}
  3139. @ref-end-item
  3140. @}}}
  3141. @}}}
  3142. @{{{  @EDT direction
  3143. @{{{  @EDT section-move
  3144. @ref-start-item Section
  3145. Move the cursor 16 lines in current direction.
  3146. @ref-end-item
  3147. @}}}
  3148. @{{{  @EDT word-move
  3149. @ref-start-item Word
  3150. Move one word in current direction.
  3151. @ref-end-item
  3152. @}}}
  3153. @{{{  @EDT char-move
  3154. @ref-start-item Word
  3155. Move one character in current direction.
  3156. @ref-end-item
  3157. @}}}
  3158. @}}}
  3159. @{{{  @EDT searching
  3160. @{{{  @EDT find-next-direction
  3161. @ref-start-item Find
  3162. Search for the last searched pattern in current direction.
  3163. @ref-end-item
  3164. @}}}
  3165. @{{{  @EDT find-direction
  3166. @ref-start-item Gold Find
  3167. Prompt for a pattern and search in current direction.
  3168. @ref-end-item
  3169. @}}}
  3170. @}}}
  3171. @{{{  @EDT goto-line
  3172. @ref-start-item Gold Page space
  3173. @{{{  goto-line
  3174. @}}}
  3175. @ref-end-item
  3176. @}}}
  3177. @}}}
  3178. @{{{  @EDT Editing
  3179. @{{{  @EDT Deleting
  3180. @{{{  @EDT delete-line
  3181. @ref-start-item DelLine
  3182. @{{{  delete-line
  3183. @}}}
  3184. @ref-end-item
  3185. @}}}
  3186. @{{{  @EDT undelete-line
  3187. @ref-start-item GoldDelLine
  3188. Put the last deleted line back to the text. This function is not the same as
  3189. undo-delete-line, because the line stays in the delete-buffer!
  3190. @ref-end-item
  3191. @}}}
  3192. @{{{  @EDT delete-to-end-of-line
  3193. @ref-start-item Gold EOL
  3194. @{{{  delete-to-end-of-line
  3195. @}}}
  3196. @ref-end-item
  3197. @}}}
  3198. @{{{  @EDT delete-to-beginning-of-line
  3199. @ref-start-item Gold SOL
  3200. Remove all characters left from the cursor.
  3201. @ref-end-item
  3202. @}}}
  3203. @}}}
  3204. @{{{  insert-number-char
  3205. @ref-start-item Gold Char
  3206. Prompt for a number and insert the corresponding character.
  3207. @ref-end-item
  3208. @}}}
  3209. @{{{  toggle-case-char
  3210. @ref-start-item Gold Word
  3211. Toggle the case of the character under the cursor and move to the right.
  3212. @ref-end-item
  3213. @}}}
  3214. @}}}
  3215. @{{{  @EDT Folding
  3216. @{{{  @EDT enter-fold
  3217. @ref-start-item DelChar
  3218. @{{{  enter-fold
  3219. @}}}
  3220. @ref-end-item
  3221. @}}}
  3222. @{{{  @EDT open-fold
  3223. @ref-start-item DelWord
  3224. @{{{  open-fold
  3225. @}}}
  3226. @ref-end-item
  3227. @}}}
  3228. @{{{  @EDT exit-fold
  3229. @ref-start-item Gold DelChar
  3230. @{{{  exit-fold
  3231. @}}}
  3232. @ref-end-item
  3233. @}}}
  3234. @{{{  @EDT close-fold
  3235. @ref-start-item Gold DelWord
  3236. @{{{  close-fold
  3237. @}}}
  3238. @ref-end-item
  3239. @}}}
  3240. @{{{  @EDT create-fold
  3241. @ref-start-item Select
  3242. @{{{  create-fold
  3243. @}}}
  3244. @ref-end-item
  3245. @}}}
  3246. @{{{  @EDT unfold-fold
  3247. @ref-start-item Gold Select
  3248. @{{{  unfold-fold
  3249. @}}}
  3250. @ref-end-item
  3251. @}}}
  3252. @}}}
  3253. @{{{  @EDT Line Handling
  3254. @{{{  @EDT kill-line
  3255. @ref-start-item Append
  3256. @{{{  kill-line
  3257. @}}}
  3258. @ref-end-item
  3259. @}}}
  3260. @{{{  @EDT clear-kill-and-cut-line
  3261. @ref-start-item Cut
  3262. Clear the kill buffer and copy the current line to the kill-buffer.
  3263. @ref-end-item
  3264. @}}}
  3265. @{{{  @EDT paste-and-rekill-line
  3266. @ref-start-item Gold Cut
  3267. Copy the contents of the kill buffer folded to the text.
  3268. @ref-end-item
  3269. @}}}
  3270. @{{{  @EDT replace-line-by-kill
  3271. @ref-start-item Gold Append
  3272. Replace the current line by a copy of the kill buffer.
  3273. @ref-end-item
  3274. @}}}
  3275. @}}}
  3276. @{{{  @EDT save-file
  3277. @ref-start-item Gold Page s a v e
  3278. @{{{  save-file
  3279. @}}}
  3280. @ref-end-item
  3281. @}}}
  3282. @{{{  @EDT Helps
  3283. @{{{  @EDT center-and-redraw-display
  3284. @ref-start-item Gold Gold
  3285. @{{{  center-and-redraw-display
  3286. @}}}
  3287. @ref-end-item
  3288. @}}}
  3289. @{{{  @EDT describe-bindings
  3290. @ref-start-item Gold Help
  3291. @{{{  describe-bindings
  3292. @}}}
  3293. @ref-end-item
  3294. @}}}
  3295. @{{{  @EDT info
  3296. @ref-start-item Help
  3297. @{{{  info
  3298. @}}}
  3299. @ref-end-item
  3300. @}}}
  3301. @}}}
  3302. @{{{  @EDT Exits
  3303. @{{{  @EDT quit-buffer
  3304. @ref-start-item Gold Page q u i t
  3305. Ignore changes and quit the current buffer.
  3306. @ref-end-item
  3307. @}}}
  3308. @{{{  @EDT exit-buffer
  3309. @ref-start-item Gold Page e x i t
  3310. Save the current file and quit the current buffer.
  3311. @ref-end-item
  3312. @}}}
  3313. @}}}
  3314. @{{{  @EDT shell
  3315. @ref-start-item Gold x
  3316. @{{{  shell
  3317. @}}}
  3318. @ref-end-item
  3319. @}}}
  3320. @{{{  @EDT fill-paragraph
  3321. @ref-start-item Gold Section
  3322. @{{{  fill-paragraph
  3323. @}}}
  3324. @ref-end-item
  3325. @}}}
  3326. @{{{  @EDT toggle-mode-overwrite
  3327. @ref-start-item Gold Page i n s e r t
  3328. Switch on/off mode overwrite.
  3329.  
  3330. @{{{  easy modes
  3331. @}}}
  3332. @ref-end-item
  3333. @}}}
  3334. @}}}
  3335. @{{{  @EDT Move-Mode
  3336. @{{{  @EDT Moving Around
  3337. @}}}
  3338. @{{{  @EDT-M Folding
  3339. @{{{  @EDT open-fold
  3340. @}}}
  3341. @{{{  @EDT close-fold
  3342. @}}}
  3343. @{{{  @EDT fold-mark-region
  3344. @ref-start-item Select
  3345. @{{{  @move fold-mark-region
  3346. @}}}
  3347. @ref-end-item
  3348. @}}}
  3349. @}}}
  3350. @{{{  @EDT-M Editing
  3351. @{{{  @EDT delete-mark-region
  3352. @ref-start-item DelLine
  3353. @{{{  @move delete-mark-region
  3354. @}}}
  3355. @ref-end-item
  3356. @}}}
  3357. @{{{  @EDT undo-delete-line-unfolded-at-position
  3358. @ref-start-item Gold DelLine
  3359. Copy kill buffer to current position.
  3360. @ref-end-item
  3361. @}}}
  3362. @{{{  @EDT-M toggle-case-region
  3363. @ref-start-item Gold Word
  3364. @{{{  @move toggle-case-mark-region
  3365. @}}}
  3366. @ref-end-item
  3367. @}}}
  3368. @}}}
  3369. @{{{  @EDT-M Line Handling
  3370. @{{{  @EDT-M kill-mark-region
  3371. @ref-start-item Append
  3372. @{{{  @move kill-mark-region
  3373. @}}}
  3374. @ref-end-item
  3375. @}}}
  3376. @{{{  @EDT-M replace-region-by-kill
  3377. @ref-start-item Gold Append
  3378. Replace the selected by region by a copy of the kill buffer.
  3379. @ref-end-item
  3380. @}}}
  3381. @{{{  @EDT-M clear-kill-and-cut-region
  3382. @ref-start-item Cut
  3383. Clear the kill buffer and copy the selected region to it.
  3384. @ref-end-item
  3385. @}}}
  3386. @{{{  @EDT paste-and-rekill-region
  3387. @ref-start-item Gold Cut
  3388. Insert a copy of the kill buffer at current cursor position.
  3389. @ref-end-item
  3390. @}}}
  3391. @}}}
  3392. @{{{  @EDT describe-bindings
  3393. @}}}
  3394. @}}}
  3395. @}}}
  3396. @fi
  3397. @}}}
  3398. @{{{  C-Operators
  3399. @ref-start-tbl Operator 34 Precedence 13
  3400. () [] -> .                           @@  left to right
  3401. ! ~ ++ -- + - * & (type) sizeof      @@  right to left
  3402. * / %                                @@  left to right
  3403. + -                                  @@  left to right
  3404. << >>                                @@  left to right
  3405. < <= > >=                            @@  left to right
  3406. == !=                                @@  left to right
  3407. &                                    @@  left to right
  3408. ^                                    @@  left to right
  3409. |                                    @@  left to right
  3410. &&                                   @@  left to right
  3411. ||                                   @@  left to right
  3412. ?:                                   @@  right to left
  3413. = += -= *= /= %= &= ^= |= <<= >>=    @@  right to left
  3414. ,                                    @@  left to right
  3415. @ref-end-tbl
  3416. Unary +, -, and * have higher precedence than the binary forms.
  3417.  
  3418. @{{{  ModeOri-Reference-Card
  3419. @}}}
  3420. @}}}
  3421.